Automate GitHub Project Sharing to Social Media with n8n
detail.loadingPreview
Scrape Hacker News for GitHub projects, enrich with visit data, and post to Twitter & LinkedIn. Automate your dev outreach.
🚀Ready to Deploy This Workflow?
About This Workflow
How it works
This workflow automates the process of finding and sharing interesting GitHub projects from Hacker News. It starts by crawling the Hacker News homepage to identify posts mentioning GitHub. The 'Extract Meta' node parses the HTML to pull out titles, URLs, scores, authors, and other relevant details for GitHub links. It then filters out items that have already been processed. For new items, it visits the GitHub URL to potentially gather more context (though this step's output isn't explicitly used later in this snippet, it's a placeholder for future enrichment). The content is then converted to Markdown. Finally, the workflow attempts to update Airtable to track posted items and posts to LinkedIn. It also includes logic to update status for Twitter and LinkedIn posts in Airtable.
Key Features
- Automatically discovers GitHub projects from Hacker News.
- Extracts key metadata including title, URL, score, author, and age.
- Filters out previously shared or processed items.
- Converts HTML content to Markdown for cleaner sharing.
- Integrates with Airtable for tracking and status updates.
- Supports posting to LinkedIn and updating Twitter status.
How To Use
- Crawl HN Home: This node fetches the Hacker News homepage.
- Extract Meta: Configured with Python, this node parses the HTML to find GitHub links and their associated metadata (title, URL, score, author, age, comments). It requires
beautifulsoup4andsimplejsonlibraries to be installed within the n8n environment. - Search Item (Airtable): Searches your Airtable base for existing entries matching the 'Post' ID to prevent duplicates.
- Filter Unposted Items: Filters out any items that were found in the Airtable search (meaning they've been processed or shared before).
- Visit GH Page: This node is intended to visit the extracted GitHub URL. You might need to configure it to extract specific data if desired.
- Convert HTML To Markdown: Converts any HTML content to Markdown. This node is configured to use
{{ $json.data }}which implies the output from the 'Visit GH Page' node should contain HTML data. - Create Item (Airtable): Creates a new entry in your Airtable base with the extracted GitHub project details and generated social media content.
- Update X Status (Airtable): Updates the 'TDone' (Task Done) status in Airtable to
truefor successfully processed items. - LinkedIn: Posts content to LinkedIn. The
textfield is dynamically set to{{ $('Filter Errored').item.json.message.content.linkedin }}, suggesting this node relies on content prepared by a previous filtering step. - Update L Status (Airtable): Updates the 'LDone' (LinkedIn Done) status in Airtable to
true. - Filter Errored: This node acts as a conditional filter. It only allows items through if the
errorfield is empty, preventing downstream actions for failed processes. - No Operation, do nothing: A placeholder node that does nothing. It's often used to visually separate workflow branches or as a default path when no other action is needed.
Apps Used
Workflow JSON
{
"id": "e53e2365-d9da-4e45-bb18-fe35421186d8",
"name": "Automate GitHub Project Sharing to Social Media with n8n",
"nodes": 0,
"category": "Social Media",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: e53e2365-d9da...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Automate YouTube Video Uploads & Playlist Management
Effortlessly upload videos to YouTube and auto-create/add them to playlists. Save time and boost your content strategy.
Automated Bluesky Direct Message to New Followers
Automatically send a personalized welcome DM to new followers on Bluesky.
LinkedIn Multilingual Comment, Mention, and Reaction Generator
Automates LinkedIn engagement by generating multilingual comments and reactions based on post content and user-defined guardrails.