{ "info": { "author": "Wes Turner", "author_email": "wes@wrd.nu", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "====\ndlhn\n====\n\n\n.. image:: https://img.shields.io/pypi/v/dlhn.svg\n :target: https://pypi.python.org/pypi/dlhn\n\n.. image:: https://img.shields.io/travis/westurner/dlhn.svg\n :target: https://travis-ci.org/westurner/dlhn\n\n.. .. image:: https://readthedocs.org/projects/dlhn/badge/?version=latest\n.. :target: https://dlhn.readthedocs.io/en/latest/?badge=latest\n.. :alt: Documentation Status\n\n\n.. .. image:: https://pyup.io/repos/github/westurner/dlhn/shield.svg\n.. :target: https://pyup.io/repos/github/westurner/dlhn/\n.. :alt: Updates\n\n\n\ndlhn is a Python CLI script to download my comments and submissions\nfrom the Hacker News API\nand generate a static HTML archive with a Jinja2 template\n\n\nFeatures\n--------\n\n* Download comments and submissions from the Hacker News API\n* Archive comment trees and submissions as JSON\n* Archive comment trees and submissions as static HTML \n with a Jinja2 HTML template\n* Aggressively cache entries that couldn't have changed\n with a two-layer caching system that includes requests_cache\n and a sqlite database\n\nInstallation\n--------------\n\nInstall dlhn with pip:\n\n.. code:: bash\n\n pip install dlhn\n\n # pip install -e git+https://github.com/westurner/dlhn#egg=dlhn\n\n\nUsage\n------\n\nCall dlhn:\n\n.. code:: bash\n\n\tdlhn -u dlhntestuser -o index.html --expire-newerthan 14d\n\nOptionally, create a repo for e.g. GitHub Pages and add a ``Makefile``:\n\n.. code:: makefile\n\n # hnlog Makefile\n\n USERNAME:=dlhntestuser\n\n default: backup\n\n install:\n pip install -e git+https://github.com/westurner/dlhn#egg=dlhn\n\n backup:\n @# items with a cachetime newer than 14d ago may need to be pulled again\n @# because they may not be locked yet (cachetime != item_time)\n dlhn -u '$(USERNAME)' -o index.html --expire-newerthan 14d\n\n backup-nocache:\n dlhn -u '$(USERNAME)' -o index.html\n\n commit:\n git add ./index.html ./index.html.json ./dlhn.sqlite && \\\n git commit -m \":books: Updated index.html, index.html.json, and dlhn.sqlite\"\n\n push:\n git push\n\n all: backup commit push\n\nAnd pass USERNAME as an arg when calling ``make``:\n\n.. code:: bash\n\n make all USERNAME=dlhntestuser\n\nReferences\n-----------\n\n- Hacker News Guidelines: https://news.ycombinator.com/newsguidelines.html\n- Hacker News API docs: https://github.com/HackerNews/API\n- `dlhntestuser `__\n\n - Submissions: https://news.ycombinator.com/submitted?id=dlhntestuser\n - Comments: https://news.ycombinator.com/threads?id=dlhntestuser\n\nLicense\n--------\nBSD License\n\ndlhn archives pubicly available comments and submissions\nfrom the Hacker News API\nfor noncommercial use to make searching one-page with 'Ctrl-F' easy.\n\nCredits\n-------\n\n* `@westurner `_\n\n\n=======\nHistory\n=======\n\n0.2.5 (2019-04-17)\n------------------\n* Update README.rst\n\n0.2.4 (2019-04-17)\n------------------\n* Update docs with pip package name\n* Update HISTORY.rst\n\n0.2.3 (2019-04-17)\n------------------\n* Add a setup.py\n* Add a few tests\n* First release on PyPI.\n\n0.1.0 (2017-11-28)\n------------------\n* Simple python script\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/westurner/dlhn", "keywords": "dlhn", "license": "BSD license", "maintainer": "", "maintainer_email": "", "name": "dlhn", "package_url": "https://pypi.org/project/dlhn/", "platform": "", "project_url": "https://pypi.org/project/dlhn/", "project_urls": { "Homepage": "https://github.com/westurner/dlhn" }, "release_url": "https://pypi.org/project/dlhn/0.2.5/", "requires_dist": [ "beautifulsoup4", "bleach", "certifi", "jinja2", "requests", "urlobject", "requests-cache" ], "requires_python": "", "summary": "dlhn is a Python CLI script to download my comments and submissions from the Hacker News API and generate a static HTML archive with a Jinja2 template", "version": "0.2.5" }, "last_serial": 5157495, "releases": { "0.2.3": [ { "comment_text": "", "digests": { "md5": "e0980db466f796c1c424d6f93400780d", "sha256": "f72e8c77a2746a9094f858ddd16229d67d8b67c788d09098897cf23e954caff2" }, "downloads": -1, "filename": "dlhn-0.2.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e0980db466f796c1c424d6f93400780d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9928, "upload_time": "2019-04-17T22:53:28", "url": "https://files.pythonhosted.org/packages/2b/27/75f7ec650fb6bc199883efa05afc0671f5827a2c6b1ad1fa9d2b889fa9b0/dlhn-0.2.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "687524a2834be375a2aca5f1b3d1639a", "sha256": "1067847c93176c9386f821cef32f7a98254ae164e9c8a5e3b214923adfe70e16" }, "downloads": -1, "filename": "dlhn-0.2.3.tar.gz", "has_sig": false, "md5_digest": "687524a2834be375a2aca5f1b3d1639a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15266, "upload_time": "2019-04-17T22:53:30", "url": "https://files.pythonhosted.org/packages/79/37/61a7181623ade7b505f5bd160b0eead2d0a8a8b0283b2d711117971eb152/dlhn-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "fedd1c700c6ad5cfa2abde32e0932890", "sha256": "90674935f1818aff1592a9944cbef9500c064f2397cafc7fd02bb3099e86e304" }, "downloads": -1, "filename": "dlhn-0.2.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fedd1c700c6ad5cfa2abde32e0932890", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9962, "upload_time": "2019-04-17T23:02:29", "url": "https://files.pythonhosted.org/packages/9d/31/dd8f583535354b8e26b4dfc49d8ff5e405023b1d90c2cd995d098cee2878/dlhn-0.2.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e4bd12d7a1f354aa6fb89fc0b408e0f6", "sha256": "8903b4bfd9dcca141208123ffd6ee0bf6a07d48861cd04426fc244d4f27a4fa3" }, "downloads": -1, "filename": "dlhn-0.2.4.tar.gz", "has_sig": false, "md5_digest": "e4bd12d7a1f354aa6fb89fc0b408e0f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15309, "upload_time": "2019-04-17T23:02:30", "url": "https://files.pythonhosted.org/packages/f2/07/65855e79d71c5dfcdd87b3ff9c0cf5cc0d86a381a837574e55859f9e6974/dlhn-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "677e052d4a5a713086f0a41e7feed092", "sha256": "809f31be99e670d6402ff52c831d175d4f02ecab04f55ba4653516c419f5edb8" }, "downloads": -1, "filename": "dlhn-0.2.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "677e052d4a5a713086f0a41e7feed092", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9984, "upload_time": "2019-04-17T23:09:20", "url": "https://files.pythonhosted.org/packages/b6/ef/d6d5d74b524435d7540ac574065a342df8333d11ecc0ebcb9a5a82e3ac3e/dlhn-0.2.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4f0ae2ef54cc0905a3ef22dcf303ea7f", "sha256": "9ea5ed007fa9cb78547ec0bd4eddba82346cafafdea6777cd244abd9f4079f12" }, "downloads": -1, "filename": "dlhn-0.2.5.tar.gz", "has_sig": false, "md5_digest": "4f0ae2ef54cc0905a3ef22dcf303ea7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15352, "upload_time": "2019-04-17T23:09:21", "url": "https://files.pythonhosted.org/packages/50/cb/5619a505073f248517e3383176feae2b0dfc2d1eecc0881e1cc67ce62d71/dlhn-0.2.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "677e052d4a5a713086f0a41e7feed092", "sha256": "809f31be99e670d6402ff52c831d175d4f02ecab04f55ba4653516c419f5edb8" }, "downloads": -1, "filename": "dlhn-0.2.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "677e052d4a5a713086f0a41e7feed092", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9984, "upload_time": "2019-04-17T23:09:20", "url": "https://files.pythonhosted.org/packages/b6/ef/d6d5d74b524435d7540ac574065a342df8333d11ecc0ebcb9a5a82e3ac3e/dlhn-0.2.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4f0ae2ef54cc0905a3ef22dcf303ea7f", "sha256": "9ea5ed007fa9cb78547ec0bd4eddba82346cafafdea6777cd244abd9f4079f12" }, "downloads": -1, "filename": "dlhn-0.2.5.tar.gz", "has_sig": false, "md5_digest": "4f0ae2ef54cc0905a3ef22dcf303ea7f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15352, "upload_time": "2019-04-17T23:09:21", "url": "https://files.pythonhosted.org/packages/50/cb/5619a505073f248517e3383176feae2b0dfc2d1eecc0881e1cc67ce62d71/dlhn-0.2.5.tar.gz" } ] }