hacker-news-scraper
Search Hacker News stories and comments using the free Algolia API. No Apify token needed. Use when you need to find HN discussions, track mentions, discover Show HN launches, or monitor tech community sentiment.
npx skills add gooseworks-ai/goose-skills --skill hacker-news-scraper --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Hacker News Scraper Search Hacker News using the free [Algolia HN Search API](https://hn.algolia.com/api). No Apify token or API key needed. ## Quick Start Only dependency: `pip install requests`. ```bash # Stories about AI content marketing in last week python3 skills/hacker-news-scraper/scripts/search_hn.py \ --query "AI content marketing" --days 7 # Show HN posts in last month (summary view) python3 skills/hacker-news-scraper/scripts/search_hn.py \ --query "" --tags show_hn --days 30 --output summary # Comments mentioning a specific tool python3 skills/hacker-news-scraper/scripts/search_hn.py \ --query "LangChain" --tags comment --days 14 --max-results 20 ``` ## How the Script Works 1. Queries the Algolia HN Search API (`search_by_date` endpoint) 2. Uses `numericFilters=created_at_i>{unix_timestamp}` for server-side date filtering 3. Paginates until max-results reached 4. Normalizes results to a consistent schema 5. Applies optional keyword filtering (client-side) 6. Sorts by points (descending) and outputs JSON or summary ## CLI Reference | Flag | Default | Description | |------|---------|-------------| | `--query` | *required* | Search query | | `--days` | 7 | How many days
- Quick Start
- How the Script Works
- CLI Reference
- Output Format
- Cost
Stories about AI content marketing in last week python3 skills/hacker-news-scraper/scripts/search_hn.py \ Show HN posts in last month (summary view) Comments mentioning a specific tool
What does the hacker-news-scraper skill do?
Search Hacker News stories and comments using the free Algolia API. No Apify token needed. Use when you need to find HN discussions, track mentions, discover Show HN launches, or monitor tech community sentiment.
How do I install it?
Run `npx skills add gooseworks-ai/goose-skills --skill hacker-news-scraper --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From gooseworks-ai/goose-skills, a repository with 1,091 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
