workflows.fit
Back to n8n workflows
n8n template$15By Muhammad Asadullah

Extract & filter Reddit posts & comments with keyword search & markdown formatting

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 ...

DevelopmentCore NodesCommunicationUtilitySplit In BatchesSetLimitSticky Note
Open checkout
Loading interactive preview...

Template notes

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 for relevant posts 2. Filter & Sort - Filters posts by date (last 60 days), minimum upvotes (20+), removes duplicates, and sorts by popularity 3. Extract Comments - For each post, retrieves and extracts the top 20 most upvoted comments with their reply threads 4. Format Results - Structures all posts and comments into a clean, readable markdown report 5. Return Data - Sends the formatted report back as a webhook response, ready for use in AI tools or other applications

Set up steps

Time to set up: ~10 minutes

1. Create Reddit App (5 minutes) - Go to [https://www.reddit.com/prefs/apps](https://www.reddit.com/prefs/apps) and create a new app - Add your n8n URL and callback URL in the "redirect uri" field (you'll find this in the Reddit OAuth2 credentials setup in n8n) - Copy your app's Client ID and Client Secret

2. Configure Reddit Credentials in n8n (2 minutes) - In n8n, create new Reddit OAuth2 API credentials - Paste your Client ID and Client Secret from step 1 - Complete the OAuth2 authentication flow