← 返回
安全合规 中文

Reddit Spy

Stealth Reddit intelligence -- browse, read, and analyze any subreddit without getting blocked. Multi-layer fallback (OAuth API -> Stealth HTTP -> Browser St...
隐密 Reddit 情报 — 在不被封禁的情况下浏览、读取并分析任意子版块。多层回退机制(OAuth API → 隐密 HTTP → 浏览器)
hioliver933
安全合规 clawhub v1.0.0 1 版本 99894.8 Key: 无需
★ 0
Stars
📥 950
下载
💾 8
安装
1
版本
#latest

概述

Reddit Spy -- Stealth Subreddit Intelligence

Browse any target subreddit, read full posts, analyze strategies, and extract competitive intelligence -- all without getting blocked by Reddit.

Entry point:

python3 /root/.openclaw/skills/reddit-spy/scripts/reddit_spy.py <command> [options]

All commands output JSON to stdout. Logs go to stderr.


Setup

Tor (primary, already running):

Tor provides real-time Reddit access from any IP. It's running on this VPS as a systemd service.

# Verify Tor is running
systemctl status tor@default

# If stopped, start it
systemctl start tor@default

Optional: Reddit OAuth (even more reliable):

If you have Reddit API access, set these env vars for 60 req/min:

export REDDIT_CLIENT_ID="your-app-client-id"
export REDDIT_CLIENT_SECRET="your-app-secret"
export REDDIT_USERNAME="your-reddit-username"
export REDDIT_PASSWORD="your-reddit-password"

Optional: Proxy:

export REDDIT_PROXY_URL="http://user:pass@proxy:port"

Fetching Layers (Cascade Order)

LayerMethodSpeedDataStatus
------------------------------------
1. OAuth APIReddit API v2FastFull real-timeOptional (needs API key)
2. TorSOCKS5 via Tor exit nodesFastFull real-timeACTIVE -- primary layer
3. Stealth HTTPold.reddit.com directFastFull real-timeBlocked on VPS IPs
4. Browser StealthPlaywrightSlowFull real-timeBlocked on VPS IPs
5. PullPushArchive APIFastHistorical (may lag)Always works

Each command tries layers in order, falls through on failure. Layer health is cached for 1 hour. Tor auto-rotates circuits (new IP) on rate limits.


Commands

spy -- Comprehensive Subreddit Intelligence

Full scan: about info + top posts + strategy analysis in one pass.

python3 .../reddit_spy.py spy --subreddit IndieHackers --sort top --timeframe week --limit 25
ParamDefaultValues
------------------------
--subreddit(required)Subreddit name without r/
--sorttophot, new, top, rising
--timeframeweekhour, day, week, month, year, all
--limit25Max posts to analyze

Returns: about metrics, posts fetched, content type breakdown, hook patterns, timing analysis, top 5 posts, actionable recommendations.

deep-read -- Full Post Deep Dive

Read complete post body + all nested comments with statistics.

python3 .../reddit_spy.py deep-read --url "https://www.reddit.com/r/.../comments/..." --depth 8

Returns: full post, flattened comment list (author, body, score, depth, is_op), comment stats.

bulk-scan -- Multi-Subreddit Sweep

Scan multiple subreddits in one run with comparison.

python3 .../reddit_spy.py bulk-scan --subreddits "IndieHackers,SaaS,Entrepreneur" --timeframe all --limit 20

Returns: per-subreddit strategy analysis + cross-sub comparison (ranked by subscribers and engagement).

strategy -- Strategy Pattern Extraction

Extract what content strategies work best in a subreddit.

python3 .../reddit_spy.py strategy --subreddit SaaS --sort top --timeframe month --limit 50

Returns: content types ranked, hook patterns ranked, best posting hours/days, top 5 posts, recommendations.

search -- Keyword Search

Search within a subreddit for specific topics.

python3 .../reddit_spy.py search --subreddit IndieHackers --query "growth strategy" --sort top --timeframe month

user-intel -- User Profile Analysis

Analyze a Reddit user's posting patterns across subreddits.

python3 .../reddit_spy.py user-intel --username some_user --limit 25

Returns: total posts, subreddit distribution, content patterns, hook analysis.

health-check -- Test Layers

Test which fetching layers are currently working.

python3 .../reddit_spy.py health-check --test-sub python

Radar's Intelligence Workflow

Step 1: Health check

python3 .../reddit_spy.py health-check

Verify which layers are operational before starting analysis.

Step 2: Bulk scan targets

python3 .../reddit_spy.py bulk-scan --subreddits "IndieHackers,SaaS,Entrepreneur,Automation" --timeframe week --limit 25

Step 3: Deep-dive top posts

Pick high-scoring posts from Step 2 and read full content + comments:

python3 .../reddit_spy.py deep-read --url "https://reddit.com/r/.../comments/..."

Step 4: Profile top contributors

python3 .../reddit_spy.py user-intel --username top_poster

Step 5: Search for topic gaps

python3 .../reddit_spy.py search --subreddit IndieHackers --query "automation" --sort top

Strategy Analysis Output

The spy, bulk-scan, and strategy commands return:

  • content_types: question, how-to, tip, showcase, list, discussion, link -- with avg score/comments per type
  • hook_patterns: question, number, bracket, emotional, personal, neutral -- with engagement metrics
  • timing_by_hour: UTC hours ranked by avg score
  • timing_by_day: days of week ranked by avg score
  • top_5_posts: highest scoring with title, score, and type classification
  • recommendations: actionable insights (best type, hook, time, day)

Safety & Limits

  • Read-only: never posts, comments, votes, or interacts
  • Rate limited: jittered 3-8s delays between requests
  • OAuth: respects Reddit API 60 req/min limit
  • PullPush: historical archive, data may lag weeks/months behind real-time

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 10:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,172
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,720
security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,609