{"id":30820830,"url":"https://github.com/musadiq071/hacker-news_scraper","last_synced_at":"2026-05-17T15:38:49.623Z","repository":{"id":311674232,"uuid":"1044537479","full_name":"Musadiq071/hacker-news_scraper","owner":"Musadiq071","description":"CLI scraper for Hacker News — get top stories, filter by keyword, save to CSV, or open in browser.","archived":false,"fork":false,"pushed_at":"2025-08-25T21:26:17.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-25T23:26:44.310Z","etag":null,"topics":["automation","cli","csv","datacollection","hacker-news","open-source","python","selenium","webscraping"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Musadiq071.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-08-25T20:50:16.000Z","updated_at":"2025-08-25T21:26:20.000Z","dependencies_parsed_at":"2025-08-31T21:45:19.464Z","dependency_job_id":null,"html_url":"https://github.com/Musadiq071/hacker-news_scraper","commit_stats":null,"previous_names":["musadiq071/hacker-news_scraper"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Musadiq071/hacker-news_scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Musadiq071%2Fhacker-news_scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Musadiq071%2Fhacker-news_scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Musadiq071%2Fhacker-news_scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Musadiq071%2Fhacker-news_scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Musadiq071","download_url":"https://codeload.github.com/Musadiq071/hacker-news_scraper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Musadiq071%2Fhacker-news_scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273887871,"owners_count":25185765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["automation","cli","csv","datacollection","hacker-news","open-source","python","selenium","webscraping"],"created_at":"2025-09-06T10:03:04.866Z","updated_at":"2025-10-07T13:07:32.331Z","avatar_url":"https://github.com/Musadiq071.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hacker News Scraper (CLI)\n\nA lightweight Python CLI tool that scrapes top stories from [Hacker News](https://news.ycombinator.com) using Selenium (Safari WebDriver).  \nStories are saved to CSV with timestamps, and you can filter by keywords or automatically open them in your browser.\n\n---\n\n## Features\n\n- Scrape any number of top Hacker News stories (e.g., 10, 30, 50)  \n- Filter stories by keyword  \n- Save results to CSV with timestamped filenames  \n- Optionally open all links in your default browser  \n\n---\n\n## Installation\n\n1. **Clone the repository**:\n\n```bash\ngit clone https://github.com/YOUR-USERNAME/hacker-news_scraper.git\ncd hacker-news_scraper\n```\n2. install dependencies:\n```bash\npip install -r requirements.txt\n```\n3. Usage\nRun the scraper\n```bash\npython3 automation.py\n```\nYou will be prompted to enter:\nNumber of top stories to scrape (default 10)\nWhether to open links in your browser\nOptional keyword filter\n\n-Example output in terminal:\n1: Google's Liquid Cooling -\u003e https://chipsandcheese.com/p/googles-liquid-cooling-at-hot-chips\n2: chipsandcheese.com -\u003e https://news.ycombinator.com/from?site=chipsandcheese.com\n\n-Example csv file:\nhackernews_top10_20250825_090015.csv\n\nNotes\nRequires Safari with \"Allow Remote Automation\" enabled:\nSafari \u003e Develop \u003e Allow Remote Automation\nRun once in terminal:\n```bash\nsafaridriver --enable\n```\n\nExample Output\nCheck the hackernews_top10(example_file).csv in the repo for a sample of scraped stories.\n\n\n\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusadiq071%2Fhacker-news_scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmusadiq071%2Fhacker-news_scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmusadiq071%2Fhacker-news_scraper/lists"}