VOOZH about

URL: https://apify.com/diodames/hn-design-scraper

โ‡ฑ HN Design Scraper ยท Apify


Pricing

Pay per usage

Go to Apify Store

Pricing

Pay per usage

Rating

0.0

(0)

Developer

๐Ÿ‘ Martin Andrle

Martin Andrle

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

8 months ago

Last modified

Categories

Share

Actor โ€“ Hacker News Design Scraper

Scrape Y Combinator's Hacker News front page and extract only design-oriented posts. The Actor collects:

  • title
  • upvotes (points)
  • rank
  • source URL

This tool is ideal for tracking UX/UI and design-related discussions on Hacker News.

Features

  • Scrape the Hacker News homepage (news) quickly via HTTP (Cheerio)
  • Filter posts by configurable design-related keywords
  • Store results in the default Apify dataset

Input Parameters

The input is a JSON object with the following fields:

  • startUrl (Optional, String)
    • Hacker News page to scrape. Defaults to https://news.ycombinator.com/.
  • keywords (Optional, Array of String)
    • Keywords used to match design-related posts in titles. Defaults include: design, ux, ui, usability, accessibility, typography, interaction, product design, interface, figma, sketch, prototype.

Input Example

{
"startUrl":"https://news.ycombinator.com/",
"keywords":[
"design",
"ux",
"ui",
"usability",
"accessibility"
]
}

During the Run

  • The Actor loads the provided startUrl (default: HN front page)
  • It parses the list of posts (tr.athing rows)
  • For each post, it extracts title, rank, and upvotes (from the adjacent subtext row)
  • It filters items whose titles include any of the provided keywords
  • Matching items are stored to the default dataset

If incorrect input is provided, the Actor will fail with a descriptive message.

Output

Each dataset item has the following structure:

{
"title":"Your vs. My in user interfaces",
"upvotes":166,
"rank":2,
"url":"https://adamsilver.io/blog/your-vs-my-in-user-interfaces/",
"source":"https://news.ycombinator.com/"
}

Run Locally

Use Node 18+ (recommended with nvm):

nvm install18
nvm use 18
npminstall
node src/main.js

Local storage paths used by the Actor:

  • Input: storage/key_value_stores/default/INPUT.json
  • Output dataset: storage/datasets/default

Docker

docker build -f .actor/Dockerfile -t hn-design-scraper .
mkdir-p storage
docker run --rm-v"$PWD/storage:/usr/src/app/storage" hn-design-scraper

Apify CLI (optional)

npm i -g apify-cli
apify login
apify run

Deploy to Apify Platform

apify push --no-prompt
apify call

Notes

  • This Actor focuses on the front page and performs keyword-based filtering for design topics.
  • If you need historical pages, Show HN, Ask HN, or comments hierarchy, consider adapting the code or using a more feature-complete HN Actor.
  • Keep nodejsVersion at 18 in .actor/actor.json for compatibility on the Apify platform.

Reference

  • Inspired by the structure of: https://apify.com/epctex/hackernews-scraper

You might also like

Hacker News API Scraper

logiover/hacker-news-search-scraper

Hacker News scraper & HN API alternative. Scrape stories, comments, Ask HN & Show HN without login; export to CSV/JSON. No key, no proxy.

Design Huddle - Professional Design Automation

alizarin_refrigerator-owner/design-huddle

Automate professional design creation using Design Huddle's template-based design platform. Perfect for marketing agencies, content creators, and businesses needing scalable design production and implement into their existing SaaS infrastructure.

Hacker News Scraper

dami_studio/hacker-news-scraper

Scrape Hacker News via the public Algolia HN Search API. Search stories, Show HN, Ask HN or comments by keyword, sort by relevance or date, filter by minimum points. Clean JSON output with title, URL, author, points, comments and HN item link. No key.

1

Hacker News Search Scraper Stories, Comments, Show HN, Ask HN

seemuapps/hn-search-scraper

Search Hacker News stories, comments, Show HN, Ask HN, polls, and jobs by keyword, author, date range, points, and comment count. Full text and engagement metrics. No login.

Design Pickle API - Professional Design Request Automation

alizarin_refrigerator-owner/design-pickle-api---professional-design-request-automation

Automate your Design Pickle design requests with this powerful Apify actor. Submit design requests, track status, manage brands, and download completed designs - all programmatically via the Design Pickle API. Unlimited Graphic Design Request Automation

Hacker News MCP Server

automation-lab/hackernews-mcp-server

Query Hacker News data programmatically: search stories, get top posts, Ask HN, Show HN, jobs, comments, and user profiles via the free HN Algolia API.

๐Ÿ‘ User avatar

Stas Persiianenko

3

Hacker News Scraper

nogards95/hacker-news-scraper

Scrape Hacker News stories, comments, jobs, Ask HN, and Show HN using Algolia Search API and HN Firebase API. Supports full-text search, date/points filters, and live feeds.