Back to templates
Contentextract
4.8
1.9k uses
Hacker News Top Stories
Extract top stories from Hacker News with title, URL, points, author, comment count, and submission time
Target URL
https://news.ycombinator.com/Visit SiteSteps
1
Go to Hacker News front page
navigate
2
Extract stories
extract
| Field | Selector | Transform |
|---|---|---|
| title | .titleline a | text |
| url | .titleline a | url |
| points | .score | text |
| author | .hnuser | text |
| commentCount | .subline a:last-child | text |
| age | .age | text |
Output Schema
| Field | Type |
|---|---|
| title | string |
| url | string |
| points | string |
| author | string |
| commentCount | string |
| age | string |
Example Output
| title | url | points | author | commentCount | age |
|---|---|---|---|---|---|
| Show HN: Open-source browser automation framework | https://github.com/example/browser-auto | 342 points | devbuilder | 127 comments | 3 hours ago |
| PostgreSQL 17 Released with Major Performance Improvements | https://postgresql.org/about/news/17 | 891 points | pgfan | 284 comments | 5 hours ago |
| Why We Moved from Kubernetes to Bare Metal | https://blog.techstartup.io/bare-metal | 567 points | infraeng | 203 comments | 7 hours ago |
API Endpoint
curl -X POST https://api.scraper.bot/v1/flows \
-H "Authorization: Bearer scr_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"templateId": "tmpl-hackernews",
"url": "https://news.ycombinator.com/"
}'