Skip to content
Shell
3.2 KB
Raw Blame

Reddit Research Agent - Quick Start

Installation

cd reddit-research
npm install

Required Setup

Set your Anthropic API key (for Claude analysis):

export ANTHROPIC_API_KEY=sk-ant-...

Usage

1. Find Goldmine Threads (Python - Quick)

# Scan a subreddit
python3 find_goldmine_threads.py SaaS

# Search with specific query
python3 find_goldmine_threads.py entrepreneur --query "frustrating"

# Output: List of high-value threads sorted by goldmine score

2. Extract Thread Data (Python)

# Get formatted markdown
python3 reddit_extractor.py "https://reddit.com/r/SaaS/comments/xyz/title/"

# Get JSON for programmatic use
python3 reddit_extractor.py "https://reddit.com/r/SaaS/comments/..." --json

# Include analysis prompt
python3 reddit_extractor.py "https://reddit.com/r/SaaS/comments/..." --prompt

3. Run the TypeScript Agent

# Single scan cycle
npx tsx src/agent/index.ts run

# Start scheduled agent (daily at 9 AM)
npx tsx src/agent/index.ts schedule

# Custom schedule (every 6 hours)
npx tsx src/agent/index.ts schedule "0 */6 * * *"

4. Manage Tracked Sources

# Add subreddit
npx tsx src/agent/index.ts add SaaS

# Add subreddit with specific query
npx tsx src/agent/index.ts add entrepreneur "wish existed"

# List configured sources
npx tsx src/agent/index.ts sources

5. View Statistics

npx tsx src/agent/index.ts stats

Example Workflow

# 1. Find interesting threads
python3 find_goldmine_threads.py smallbusiness --query "software"

# 2. Extract and analyze top thread
python3 reddit_extractor.py "https://reddit.com/r/smallbusiness/comments/..." --prompt > analysis.txt

# 3. Run full agent for automated insights
npx tsx src/agent/index.ts add smallbusiness "software"
npx tsx src/agent/index.ts run

# 4. Check results
npx tsx src/agent/index.ts stats

High-Value Subreddits

B2B / SaaS

  • r/SaaS
  • r/startups
  • r/entrepreneur
  • r/smallbusiness

Developer Tools

  • r/webdev
  • r/programming
  • r/devops
  • r/sysadmin

Consumer

  • r/productivity
  • r/ADHD
  • r/homelab
  • Any niche hobby subreddit

Goldmine Queries

The agent automatically searches for these high-value phrases:

  • "wish existed"
  • "hate about"
  • "frustrating"
  • "looking for"
  • "recommend"
  • "alternative to"
  • "switched from"
  • "paying for"
  • "game changer"

Output Format

Thread Analysis

# Reddit Thread Analysis

**Subreddit:** r/SaaS
**Title:** What's One Thing You Wish You Did Differently?
**Score:** 351 | **Upvote Ratio:** 99%
**Comments:** 80 | **Unique Authors:** 45

## Pain Points
- No validation before building (3 mentions)
- Can't sell as introvert (high engagement)
- Distribution/visibility challenges

## Opportunities
- [high] Validation-as-a-Service tool
- [medium] Sales training for technical founders
- [low] Growth loop templates

## Competitor Mentions
- Canva (neutral) - mentioned 5 times
- Notion (positive) - mentioned 3 times

## Key Quotes
> "I hired sales, for one year I didn't get any client. Now I do sales myself..."

Database Location

By default, data is stored in ./reddit-research.db (SQLite).

View raw data:

sqlite3 reddit-research.db "SELECT * FROM insights ORDER BY created_at DESC LIMIT 10;"