hackernews-frontpage

Scrape Hacker News front-page stories into structured JSON.

Updated Dec 26, 2025
One-click install
npx skills add https://github.com/tony30552001/Genpic-master --skill hackernews-frontpage-tony30552001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hackernews-frontpage
Source: https://github.com/tony30552001/Genpic-master/tree/main/.agents/skills/gstack/browser-skills/hackernews-frontpage
Command: npx skills add https://github.com/tony30552001/Genpic-master --skill hackernews-frontpage-tony30552001

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scrape Hacker News front-page data (titles, points, and comments) into a stable JSON structure suitable for analytics, dashboards, and automation.

Core Features & Use Cases

  • Deterministic front-page scraping: fetch the top 30 stories from https://news.ycombinator.com and extract rank, id, title, url, points, and comments.
  • Structured output: emits a single JSON document with { stories, count } for easy integration.
  • Automation-ready: can be embedded in pipelines or AI prompts to monitor Hacker News trends.

Quick Start

Run the hackernews-frontpage skill to emit the latest HN front-page stories as JSON.

Frequently Asked Questions about hackernews-frontpage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scrape Hacker News front-page stories into JSON?

To scrape Hacker News front-page stories into JSON, you can use a deterministic scraping tool that fetches the top 30 stories from the news.ycombinator.com homepage and extracts metrics like rank, id, title, url, points, and comments into a structured JSON document.

What data fields are included when scraping Hacker News posts?

When scraping Hacker News posts, the extracted data fields include rank, id, title, url, points, and comments. For job postings on the front page, the points and comments fields return null values since scores and comments are absent.

Can I automate extracting Hacker News trends for a dashboard?

Yes, you can automate extracting Hacker News trends for a dashboard by embedding a deterministic front-page scraper into your data pipelines to fetch titles, points, and comments, outputting a structured JSON document ready for analytics integration.

Do I need authentication to scrape Hacker News front-page content?

No, you do not need authentication to scrape Hacker News front-page content. The scraping process runs deterministically against the stable Hacker News HTML and extracts public story data without requiring any login credentials.

What is the best way to get structured data from Hacker News for AI prompts?

The best way to get structured data from Hacker News for AI prompts is to use a scraper that emits a single JSON document containing story arrays and a count field, providing clean structured outputs that can be directly embedded into automation pipelines or AI prompts.

Why does my Hacker News JSON output show null values for points and comments?

Your Hacker News JSON output shows null values for points and comments because the scraper encounters job postings on the front page where scores and comment sections are absent, automatically returning nulls for those specific metrics to maintain a stable JSON structure.