Reddit Scrape Tool
Scrapes posts from any Reddit subreddit with flexible filtering and sorting options
Quick Start
import { RedditScrapeTool } from '@bubblelab/bubble-core';
const result = await new RedditScrapeTool({
subreddit: null, // Name of the subreddit to scrape (with or without r/ prefix)
}).action();
Operation Details
execute
- Input Schema
- Output Schema
subredditunknown required- Name of the subreddit to scrape (with or without r/ prefix)
limitnumber- Maximum number of posts to fetch (1-1000, default: 25)
sort'hot' | 'new' | 'top' | 'rising'- Sorting method for posts (default: hot)
timeFilter'hour' | 'day' | 'week' | 'month' | 'year' | 'all'- Time filter for "top" sort (only applies when sort=top)
filterTodayboolean- Filter results to only include posts from today
includeStickiedboolean- Include stickied/pinned posts in results
minScorenumber- Minimum upvote score required for posts
credentialsRecord<CredentialType,string>- Optional credentials for enhanced features
postsobject[] required- Array of scraped Reddit posts
metadataobject required- Metadata about the scraping operation
successboolean required- Whether the scraping was successful
errorstring required- Error message if scraping failed