Hacker News Data Scraper avatar

Hacker News Data Scraper

Try for free

3 days trial then $10.00/month - No credit card required now

Go to Store
Hacker News Data Scraper

Hacker News Data Scraper

epctex/hackernews-scraper
Try for free

3 days trial then $10.00/month - No credit card required now

Extract Y Combinator's Hacker News based on any search criteria. Crawl the front page, Show HN, Ask HN, news, job listings, and historical data. Get links, titles, comments, ratings, and more!

You can access the Hacker News Data Scraper programmatically from your own applications by using the Apify API. You can choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1echo '{
2  "startUrls": [
3    {
4      "url": "https://news.ycombinator.com/front"
5    },
6    {
7      "url": "https://news.ycombinator.com/show"
8    },
9    {
10      "url": "https://news.ycombinator.com/jobs"
11    },
12    {
13      "url": "https://news.ycombinator.com"
14    },
15    {
16      "url": "https://news.ycombinator.com/item?id=26566373"
17    }
18  ],
19  "maxItems": 50,
20  "endPage": 1,
21  "extendOutputFunction": "($) => { return {} }",
22  "proxy": {
23    "useApifyProxy": true
24  }
25}' |
26apify call epctex/hackernews-scraper --silent --output-dataset

Hacker News Extractor API through CLI

The Apify CLI is the official tool that allows you to use Hacker News Data Scraper locally, providing convenience functions and automatic retries on errors.

Install the Apify CLI

1npm i -g apify-cli
2apify login

Other API clients include:

Developer
Maintained by Community

Actor Metrics

  • 3 monthly users

  • 5 stars

  • >99% runs succeeded

  • Created in Mar 2021

  • Modified 20 hours ago

Categories