Extract & filter Reddit posts & comments with keyword search & markdown formatting
Ready for 3.0What this workflow does
This workflow has 24 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects HTTP Request and Reddit.
How it runs
Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).
- Set subreddit (Edit Fields (Set)): sets or maps fields
- Set keywords (Edit Fields (Set)): sets or maps fields
- Get posts from subreddit (Reddit): uses Reddit
- Search for posts by keywords (Reddit): uses Reddit
- Set Reddit Posts (Edit Fields (Set)): sets or maps fields
- Posted in Last x days (Code): runs custom JavaScript code
- Upvotes Requirement Filtering (If): checks a condition and branches into true / false
- Remove Duplicates (Code): runs custom JavaScript code
- Sort: sorts the items
- Limit: keeps the first few items
…plus 12 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Edit Fields (Set)
n8n-nodes-base.set - Limit
n8n-nodes-base.limit - Http Request Tool
n8n-nodes-base.httpRequestTool - Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Sort
n8n-nodes-base.sort - Reddit
n8n-nodes-base.reddit - Respond to Webhook
n8n-nodes-base.respondToWebhook - Aggregate
n8n-nodes-base.aggregate - HTTP Request
n8n-nodes-base.httpRequest
From the author
Reddit Posts & Comments Scraper A powerful workflow to scrape Reddit posts and comments by keywords and/or subreddit, with intelligent filtering and formatting. How it works 1. Search Reddit - Accepts keywords and/or subreddit parameters via webhook to search…