hackernews-frontpage

Scrapes the Hacker News front page into structured JSON with ordered stories and count.

1|Updated May 5, 2026
One-click install
npx skills add https://github.com/yashs33244/my-mac-claude --skill hackernews-frontpage-yashs33244
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hackernews-frontpage
Source: https://github.com/yashs33244/my-mac-claude/tree/main/skills/gstack/hackernews-frontpage
Command: npx skills add https://github.com/yashs33244/my-mac-claude --skill hackernews-frontpage-yashs33244

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the manual effort of browsing Hacker News and manually copying story metadata by automatically extracting structured data from the front page.

Core Features & Use Cases

  • Front-page scraping: Retrieves the top stories and outputs rank, title, outbound URL, points, and comment counts.
  • Deterministic JSON output: Produces a single JSON document suitable for downstream analysis or reporting.
  • Fixture-tested parsing: Uses a stable HTML structure (including job rows where points/comments are absent) and validates parsing against a bundled HTML fixture.

Quick Start

Run the skill with the command to scrape the Hacker News front page and return the top 30 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 as JSON?

To scrape Hacker News front page stories as JSON, use this Skill to automatically extract titles, outbound links, points, and comment counts from the top 30 stories. It parses the stable HTML structure and returns a single JSON document with an ordered array.

What is the best way to extract trending articles from Hacker News for trend monitoring?

Extracting trending articles from Hacker News for trend monitoring is best done by generating a structured dataset. This Skill scrapes the front page to deliver a deterministic JSON output with rank, points, and comment counts, enabling lightweight market and news analysis without manual copy-paste.

Can I get story points and comment counts from Hacker News job postings?

You cannot get points and comment counts from Hacker News job postings because those fields are absent in job rows. This Skill's fixture-tested parsing logic accounts for the stable HTML structure and successfully extracts available metadata while omitting missing fields.

Does this Hacker News scraper require any external dependencies or libraries?

This Hacker News scraper does not require any external dependencies or libraries to function. It independently parses the front page HTML structure and emits a self-contained JSON document, making it lightweight for data-driven viewing and document ingestion.

How do I collect structured datasets from Hacker News without manual copy-paste?

To collect structured datasets from Hacker News without manual copy-paste, run this Skill to scrape the front page. It produces a deterministic JSON document containing an ordered stories array with rank, titles, outbound URLs, points, and comment counts for downstream analysis.