hackernews-frontpage

Fetch and parse Hacker News front-page stories into structured JSON.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/deflosj/frontend --skill hackernews-frontpage-deflosj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hackernews-frontpage
Source: https://github.com/deflosj/frontend/tree/main/.agents/skills/gstack/browser-skills/hackernews-frontpage
Command: npx skills add https://github.com/deflosj/frontend --skill hackernews-frontpage-deflosj

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Users need to extract top Hacker News stories from the front page programmatically for dashboards, monitoring, or data pipelines without manual scraping.

Core Features & Use Cases

  • Scrape the Hacker News front page to return structured story data including rank, id, title, URL, points, and comments.
  • Output a single JSON document with an array of stories and a count for easy integration into analytics or monitoring workflows.
  • Deterministic parsing with tests to guard against HTML rotation and ensure stable output.

Quick Start

Run the hackernews-frontpage skill to fetch the latest top stories and print them 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 a structured JSON format?

Scraping Hacker News front page stories into JSON involves fetching the HTML and parsing story data like rank, title, points, and comments. This skill handles that automatically, returning a single JSON document with an array of stories and a count for data pipelines.

Can I extract Hacker News job postings using a web scraper, and how are points handled?

Extracting Hacker News job postings is supported. The parser handles job postings by assigning null values to their points and comments fields, while still capturing their rank, id, title, and URL in the final JSON output alongside regular stories.

Does this Hacker News data extraction tool require any external dependencies or API keys?

No external dependencies or API keys are required for this Hacker News data extraction tool. It reads the stable HTML structure directly, decodes entities, and assigns 1-based ranks to emit a single JSON document.

What is the best way to monitor top Hacker News stories for a dashboard data pipeline?

Monitoring top Hacker News stories for a dashboard is best done by running this skill across time intervals. It provides deterministic parsing with tests to guard against HTML rotation, ensuring stable story data extraction for analytics workflows.

How does the parser handle HTML entity decoding and story ranking during data extraction?

The parser handles HTML entity decoding by converting entities in titles to readable text and assigns 1-based ranks to each story. This ensures the structured JSON payload accurately reflects the front page layout and displays text correctly.