{ "info": { "author": "saivarshith2000", "author_email": "hosvarshith@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "# **Py Hacker News**\n\n#### A Simple command line tool written in python to browse Hacker news.\n\n## **Introduction**\n>Hacker News is a social news website focusing on computer science and entrepreneurship. \n\npy_hacker_news is a command line tool which fetches and displays results from Hackernews website.\nYou can browse latest, top and past articles from the command line itself. \n\n## **Installation**\npy_hacker_news is written in python and can be installed with pip. \n**This program only supports python3** \n`pip3 install py_hacker_news --user` \nYou need to make sure that `~/.local/bin` is in your PATH variable. \nTo add this to the PATH try `export PATH=$PATH:~/.local/bin` \n\nYou can also download source and try \n`pip install -r requirements.txt` \n`python3 -m hnews`\n\n## **Usage**\nThe tool can be run from the terminal using the `hnews` command. \nYou can pass in various arguments to browse different parts of the Hackernews website. \nThe tool supports the following arguments: \n* type - Type of news to fetch. Options are news, latest, past. Default is news\n* number - number of pages to fetch. Each pages contains 30 articles. Default is 1\n* age - age of the pages to fetch. It only works is 'past' flat is passed. \n* proxy - network proxy if you are using a proxy server. \n\n\n## **Example**\n`hnews` - displays 30 popular articles from hackernews \n`hnews -n 5` - displays 150 (30 * 5) popular articles from hackernews \n`hnews -t latest` - displays 30 newest articles from hackernews \n`hnews -t past -a 20 -n 2` - displays 60 (30 * 2) articles that were on front page 20 days ago from hackernews\n`hnews -p https://proxy_address:port` - uses this proxy to connect to fetch articles\n\n## **Proxy**\nThe tool automatically used proxy from environment variables if no proxy is provided in args. If \na proxy flag is passed, that value is used instead. To set proxy environment variable: \n**On Linux** \n`export http_proxy=http://user:password@proxy.domain.com:port` \n`export https_proxy=http://user:password@proxy.domain.com:port` \n`export ftp_proxy=http://user:password@proxy.domain.com:port` \n**On Windows** \n`set http_proxy=http://user:password@proxy.domain.com:port` \n`set https_proxy=http://user:password@proxy.domain.com:port` \n\n## **Help**\nIn case of any trouble or if you think that the code could be improved, please open an issue of github. \nYou can also contact me at hosvarshith@gmail.com\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/saivarshith2000/hacker_news_cli", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "py-hacker-news", "package_url": "https://pypi.org/project/py-hacker-news/", "platform": "", "project_url": "https://pypi.org/project/py-hacker-news/", "project_urls": { "Homepage": "https://github.com/saivarshith2000/hacker_news_cli" }, "release_url": "https://pypi.org/project/py-hacker-news/1.0.4/", "requires_dist": [ "beautifulsoup4", "requests" ], "requires_python": "", "summary": "Command Line tool for browsing HackerNews articles", "version": "1.0.4" }, "last_serial": 5491436, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "8ee8f4bdac48fe175dcc71dd2c9cdeac", "sha256": "a0bcfed19d1ed4acf3707c1e94e608abab53093731149c7156a8bd5d22e4542f" }, "downloads": -1, "filename": "py_hacker_news-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8ee8f4bdac48fe175dcc71dd2c9cdeac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6298, "upload_time": "2019-06-24T11:26:35", "url": "https://files.pythonhosted.org/packages/b2/eb/5e85f371dd558e938bcd0b58f2a0ce71c807e0bba28743473aa60c93f596/py_hacker_news-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3bf651715de21019dc94f6d6cac6dfd4", "sha256": "112a5daaaab137bc2132d5daaf2a3a9a32bc283e3e69b540e0435f3359735fe7" }, "downloads": -1, "filename": "py_hacker_news-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3bf651715de21019dc94f6d6cac6dfd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4915, "upload_time": "2019-06-24T11:26:37", "url": "https://files.pythonhosted.org/packages/14/81/9e29aea7da12994697f799c7fabda39634f2f5c69fdc4b72c4e1a00b8235/py_hacker_news-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e47515dcd4b45ece0c1cd64a465e0d18", "sha256": "3022209db029adda4993a6c68bb0cdf2c02a05d695985411c40d51a72210afc9" }, "downloads": -1, "filename": "py_hacker_news-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "e47515dcd4b45ece0c1cd64a465e0d18", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6386, "upload_time": "2019-06-24T12:00:18", "url": "https://files.pythonhosted.org/packages/43/0c/75c65cc36789dbe8bbd65320aca099b5fa727d54e9e0e1eb334c615711bd/py_hacker_news-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a174c0434f5b5d9c696f41925f880d50", "sha256": "8e899f9752aa5fa25a3d59e2c9301f8e36b543bb2ef9d07c0133fa8648802aab" }, "downloads": -1, "filename": "py_hacker_news-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a174c0434f5b5d9c696f41925f880d50", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5008, "upload_time": "2019-06-24T12:00:19", "url": "https://files.pythonhosted.org/packages/cc/6d/1e99040f582f9d82a3237a2828118d25a6b071ddebad68f325b9023ec96b/py_hacker_news-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "41dc572a50fdd6abd470c1e41eb541b4", "sha256": "6139b719dda606ed66942abee44b1a1dc9c2d1c59f93be7762b3aad10e92dc8f" }, "downloads": -1, "filename": "py_hacker_news-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "41dc572a50fdd6abd470c1e41eb541b4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6390, "upload_time": "2019-06-24T12:03:15", "url": "https://files.pythonhosted.org/packages/d5/a7/2b75dd496877f4645915edff3ffff75ef19405485f3edb3f0322a1a03bf1/py_hacker_news-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "78b669b218558466790e8360b5f40eed", "sha256": "b87c9164e8526286374aeaa0787a2b51a13c09fb81c2ee7f7dd9001fa290f8e7" }, "downloads": -1, "filename": "py_hacker_news-1.0.2.tar.gz", "has_sig": false, "md5_digest": "78b669b218558466790e8360b5f40eed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5001, "upload_time": "2019-06-24T12:04:16", "url": "https://files.pythonhosted.org/packages/ad/4c/fce9ef055f07324e9d76735aa55b07340127c148710e8e2c0621fd947982/py_hacker_news-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "8cbb071e52084966d1d77642bc281530", "sha256": "af28565483d8ada61eb50d66e89ca57d98edb3e7b632bc9bc4cb9a524bdc8316" }, "downloads": -1, "filename": "py_hacker_news-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8cbb071e52084966d1d77642bc281530", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7166, "upload_time": "2019-06-25T16:24:30", "url": "https://files.pythonhosted.org/packages/e1/c0/7016b61bffe9bcfddc4da835122801664befb190d07c8ee4e67f09b131ac/py_hacker_news-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8c6c621e5f52c4adf48c22e6954c33b0", "sha256": "c59a55d1d46a11127983ad9165359a7db81ff37714ac2143f158c9fc09f91396" }, "downloads": -1, "filename": "py_hacker_news-1.0.3.tar.gz", "has_sig": false, "md5_digest": "8c6c621e5f52c4adf48c22e6954c33b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4955, "upload_time": "2019-06-25T16:24:32", "url": "https://files.pythonhosted.org/packages/bc/5e/f97cbe7c1e5b0d771743754132cabbd70d851eb4efcb0af19f199b922544/py_hacker_news-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "f9ce86361e7821d883db8cf47d46971f", "sha256": "4648abef35377fd0951ce83562a77d7c51dbbdddbb96ae0c29a525c3bc10d58a" }, "downloads": -1, "filename": "py_hacker_news-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "f9ce86361e7821d883db8cf47d46971f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7155, "upload_time": "2019-07-05T13:29:37", "url": "https://files.pythonhosted.org/packages/6d/93/625a3372e75dcf50bbaa96c1fd4dbf53d63c3cc88ddcc85061dae78de8b5/py_hacker_news-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ad3653a0db48ebea62f312b998faf119", "sha256": "8848420ff1fe39c9c5920c27c00bd4edf0ba3802a77f8b554bd375fb06d453e5" }, "downloads": -1, "filename": "py_hacker_news-1.0.4.tar.gz", "has_sig": false, "md5_digest": "ad3653a0db48ebea62f312b998faf119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4949, "upload_time": "2019-07-05T13:29:38", "url": "https://files.pythonhosted.org/packages/45/59/e6485843bb4a3981f4f64f691e01de623331707e152db3f64b7646012380/py_hacker_news-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f9ce86361e7821d883db8cf47d46971f", "sha256": "4648abef35377fd0951ce83562a77d7c51dbbdddbb96ae0c29a525c3bc10d58a" }, "downloads": -1, "filename": "py_hacker_news-1.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "f9ce86361e7821d883db8cf47d46971f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7155, "upload_time": "2019-07-05T13:29:37", "url": "https://files.pythonhosted.org/packages/6d/93/625a3372e75dcf50bbaa96c1fd4dbf53d63c3cc88ddcc85061dae78de8b5/py_hacker_news-1.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ad3653a0db48ebea62f312b998faf119", "sha256": "8848420ff1fe39c9c5920c27c00bd4edf0ba3802a77f8b554bd375fb06d453e5" }, "downloads": -1, "filename": "py_hacker_news-1.0.4.tar.gz", "has_sig": false, "md5_digest": "ad3653a0db48ebea62f312b998faf119", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4949, "upload_time": "2019-07-05T13:29:38", "url": "https://files.pythonhosted.org/packages/45/59/e6485843bb4a3981f4f64f691e01de623331707e152db3f64b7646012380/py_hacker_news-1.0.4.tar.gz" } ] }