Automate Daily Hacker News Email with n8n Workflow

Struggling to keep up with the latest Hacker News without wasting time? This n8n workflow automatically extracts the top news from Hacker News, compiles it into a spreadsheet, and emails it directly to you, saving hours every day.
manualTrigger
httpRequest
htmlExtract
+4
Workflow Identifier: 1395
NODES in Use: Manual Trigger, HTTP Request, HTML Extract, Item Lists, Merge, Spreadsheet File, Email Send
Automate Hacker News with n8n and HTTP Request

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow grabs the latest top stories from Hacker News and sends them by email as an Excel file.

This fixes the problem of copying news manually every day, which wastes time and can miss links.

After running, you get an email with a spreadsheet showing news titles matched with their URLs by date.


Who should use this workflow

Anyone who reads Hacker News regularly and wants to save time collecting headlines.

It helps if you want daily email updates or want an archive of news in a file.


Tools and services used

  • n8n automation platform: To build and run the workflow.
  • HTTP Request node: To download the Hacker News homepage.
  • HTML Extract node: To get news titles and URLs using CSS selectors.
  • Item Lists nodes: To split the arrays of titles and URLs into lists.
  • Merge node: To combine titles and URLs by their order.
  • Spreadsheet File node: To make an Excel file with todays’ news and date in filename.
  • Email Send node: To email the spreadsheet as attachment.

Inputs, processing steps, and output

Inputs

The workflow gets no input from the user but pulls the Hacker News homepage URL: https://news.ycombinator.com/

Processing steps

1. The HTTP Request node fetches the full Hacker News page as binary.

2. The HTML Extract node reads this binary and extracts two arrays: news titles from .storylink text and corresponding URLs from .storylink href attributes.

3. Two Item Lists nodes split these arrays into separate items for titles and URLs.

4. The Merge node combines titles and URLs by their index, linking each headline to the correct link.

5. The Spreadsheet File node turns merged data into an Excel file named with the current date for easy archiving.

6. The Email Send node sends this Excel file to your email inbox.

Output

The email has an attached Excel spreadsheet named like “Ycombinator_news_YYYY-MM-DD.xlsx” containing all current news headlines and their URLs.


Beginner step-by-step: How to use this workflow in n8n

Download and Import the Workflow

  1. Use the Download button on this page to save the workflow file.
  2. Open your n8n editor. Click “Import from File” and upload the saved workflow file.

Configure Credentials and Settings

  1. Add your SMTP email credentials in the Email Send node to enable sending emails.
  2. Check and update any recipient email addresses or sender addresses as needed.
  3. Verify the HTTP Request node’s URL is set to https://news.ycombinator.com/ unless you want to change news sources.

Test and Activate

  1. Run the workflow manually by clicking Execute to test everything works.
  2. Check your email inbox for the news spreadsheet attachment.
  3. If the test works, activate the workflow to use it regularly.
  4. To run automatically, add a Cron node trigger before the HTTP Request node and set the schedule.

For users running their own server, consider self-host n8n to avoid cloud limits.


Customization ideas

  • Change the email text or subject in the Email Send node to fit your style.
  • Modify the HTTP Request URL to scrape news from other websites with similar layout and adjust CSS selectors in the HTML Extract node accordingly.
  • Switch the spreadsheet format by changing the file extension in the Spreadsheet File node, like to .csv if preferred.
  • Add a Cron node before the HTTP Request node to schedule daily or hourly runs without manual trigger.

Handling common issues

Issue: No news titles or URLs found by the HTML Extract node.

Reason: Hacker News changed their website design or CSS classes. .storylink no longer exists.

Fix: Inspect the new page elements and update CSS selectors in the HTML Extract node.

Issue: Emails fail to send from the Email Send node.

Reason: Incorrect SMTP credentials or network blocks.

Fix: Review SMTP settings, test with another email account, or check firewall.


Summary of results and benefits

✓ Saves 15+ hours monthly by automating news collection.

✓ Eliminates copy-paste errors and missing links.

✓ Provides daily timestamped archive of Hacker News stories.

→ Delivers convenient Excel spreadsheets directly to email.

→ Lets users customize and schedule automated news updates.


Automate Hacker News with n8n and HTTP Request

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, configure Gmail SMTP credentials in the Email Send node for sending emails.
No, it scrapes public Hacker News HTML and uses SMTP, so no paid API credits are used.
Update CSS selectors in the HTML Extract node after inspecting the current website structure.
Add a Cron node before the HTTP Request node in the workflow and set the desired time schedule.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.