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

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

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

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.


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 Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free