{"id":17614108,"url":"https://github.com/qduc/hn-downloader","last_synced_at":"2026-05-15T20:06:23.777Z","repository":{"id":92629916,"uuid":"98912694","full_name":"qduc/hn-downloader","owner":"qduc","description":"NodeJS CLI app to download HackerNews database","archived":false,"fork":false,"pushed_at":"2017-08-07T15:58:09.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T16:51:21.759Z","etag":null,"topics":["nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qduc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-31T17:31:42.000Z","updated_at":"2017-08-06T09:30:54.000Z","dependencies_parsed_at":"2023-03-03T17:30:28.182Z","dependency_job_id":null,"html_url":"https://github.com/qduc/hn-downloader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/qduc/hn-downloader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qduc%2Fhn-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qduc%2Fhn-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qduc%2Fhn-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qduc%2Fhn-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qduc","download_url":"https://codeload.github.com/qduc/hn-downloader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qduc%2Fhn-downloader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33078059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:05:40.333Z","status":"ssl_error","status_checked_at":"2026-05-15T20:05:38.672Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nodejs"],"created_at":"2024-10-22T18:24:21.836Z","updated_at":"2026-05-15T20:06:23.745Z","avatar_url":"https://github.com/qduc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hacker News downloader\n\nSimple CLI app to download [Hacker News](https://news.ycombinator.com/) database using API from \u003chttps://github.com/HackerNews/API\u003e\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\n- Node.js\n\n- A MySQL server\n\n### Configuration\n\nInstall the dependencies\n\n```\nnpm install\n```\n\nPrepare database schema: Import `database.sql` file that came with this repo  \n_( Note: you must create an empty database first then `USE` it )_\n\nChange `database.js` according to your database credential\n\nUpdate `config.js` to suit your preference _(optional)_\n\n```\n    concurrentFetch : 1000\n    maxRetry        : 3\n```\n- `concurrentFetch` number of items to download before insert into database\n- `maxretry` if a network error occured, how many times it will attempt to retry before giving up\n\nYou are all set!\n\n### Usage\n\n![image](https://user-images.githubusercontent.com/11575015/29034687-4e892120-7bc3-11e7-9b05-4b76e7922678.png)\n\n```\nnode index.js [largestId]\n```\n\n- `largestId` _(optional)_ largest ID the script will download then stop, in case you just want to download a part of it.  \nLeave it blank to download the whole database (takes several hours!)\n\n**Warning:** [Aug/2017] Whole database is nearly 7GB. Make sure you have enough room for it.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqduc%2Fhn-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqduc%2Fhn-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqduc%2Fhn-downloader/lists"}