HN Design Scraper
by diodames
Opens on Apify.com
About HN Design Scraper
What does this actor do?
HN Design Scraper is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.
Key Features
- Cloud-based execution - no local setup required
- Scalable infrastructure for large-scale operations
- API access for integration with your applications
- Built-in proxy rotation and anti-blocking measures
- Scheduled runs and webhooks for automation
How to Use
- Click "Try This Actor" to open it on Apify
- Create a free Apify account if you don't have one
- Configure the input parameters as needed
- Run the actor and download your results
Documentation
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 json { "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: json { "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): bash nvm install 18 nvm use 18 npm install 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 bash 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) bash npm i -g apify-cli apify login apify run ## Deploy to Apify Platform bash 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
Categories
Common Use Cases
Market Research
Gather competitive intelligence and market data
Lead Generation
Extract contact information for sales outreach
Price Monitoring
Track competitor pricing and product changes
Content Aggregation
Collect and organize content from multiple sources
Ready to Get Started?
Try HN Design Scraper now on Apify. Free tier available with no credit card required.
Start Free TrialActor Information
- Developer
- diodames
- Pricing
- Paid
- Total Runs
- 41
- Active Users
- 3
Related Actors
Smart Article Extractor
by lukaskrivka
Google Search
by devisty
Twitter Tweets Scraper
by gentle_cloud
Twitter Profile
by danek
Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.
Learn more about ApifyNeed Professional Help?
Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.
Trusted by millions | Money-back guarantee | 24/7 Support