Hacker News Data Scraper
3 days trial then $10.00/month - No credit card required now
Hacker News Data Scraper
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: