jcrabapple/hermes-skills/hackernews-scraper
Claude Code and agent skill by jcrabapple/hermes-skills
- community
Checking that the SKILL.md file is still in the repository.
Scrape top Hacker News stories, filter by topic or keyword, and return structured JSON data including titles, URLs, scores, and comment counts.
Install
npx vskill@latest install jcrabapple/hermes-skills/hackernews-scraperSKILL.md
The same SKILL.md was published earlier as jcrabapple/hermes-skills/hackernews-scraper.
HackerNews Scraper
Scrape top Hacker News stories with filtering and search capabilities.
Quick Start
Basic Usage
Filter by Topic
Story Types
| Type | Endpoint | |
|---|---|---|
| Top | /v0/topstories.json | |
| New | /v0/newstories.json | |
| Best | /v0/beststories.json | |
| Ask | /v0/askstories.json | |
| Show | /v0/showstories.json | |
| Job | /v0/jobstories.json |
Response Schema
Common Tasks
| Task | Example | ||
|---|---|---|---|
| Get top 30 | curl -s ".../topstories.json" | jq '.[0:30]' | |
| Filter by score | jq 'select(.score > 100)' | ||
| Get comments | /v0/item/{id}.json -> .kids |
Python Implementation
For programmatic processing (recommended over shell commands):
Email Delivery Integration
For cron jobs, use the self-contained script pattern — the script fetches stories, enriches with LLM summaries, and sends email directly. This avoids security scanner blocks on .dev TLDs in story URLs (heredoc execution is blocked in cron mode).
Production script: ~/.hermes/scripts/hn_enriched.py — fetches top 10 stories, enriches via Gemini 2.5 Flash (NanoGPT), sends formatted HTML+text email via AgentMail SDK.
Key pitfalls:
- Do NOT use Qwen 3.5 thinking models via NanoGPT for structured JSON —
contentfield is always empty, output goes toreasoningfield. Usegoogle/gemini-2.5-flashinstead. - Cron agent prompt should just confirm script output — do NOT have the agent send email via terminal heredoc (triggers
.devTLD security scanner block).
See github-trending skill for a complete weekly email digest pattern.
Error Handling
- API is read-only and rarely rate-limits
- Missing stories return null
- Use jq for shell JSON parsing
- In Python,
requestshandles JSON automatically - Always check for
Noneresponses when fetching individual stories
Inputs
| Name | Type | Description | Required | |||||
|---|---|---|---|---|---|---|---|---|
| topic | text | Topic or keyword to filter stories by (e.g. "AI", "Rust", "startups") | No | |||||
| story_type | text | Type of stories to fetch: top | new | best | ask | show. Defaults to "top". | No | |
| min_score | number | Minimum score threshold. Stories below this are excluded. Defaults to 0. | No | |||||
| limit | number | Maximum number of stories to return. Defaults to 20, max 100. | No |
Outputs
| Name | Type | Description | Required | |
|---|---|---|---|---|
| stories | json | JSON array of story objects with fields: id, title, url, score, by, time, descendants (comment count), type. | Yes |
Required Tools
- web_fetch
- json_parse
Compatible Skills
- ai-paper-summarizer
- slack-notifier
- markdown-report-generator
- web-search-aggregator
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinghackernews-scraper/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jcrabapple/hermes-skills/hackernews-scraper)