微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🕵️

隐身采集 Reddit 情报,多层备份永不掉线

Reddit Spy · v1.0.0
效率 安全 B 级 作者 hioliver933 公开目录收录
1.1k 下载 0 安装 3.3k 收藏 14 浏览

简介

多层级隐身抓取 Reddit 数据,从实时 API 到 Tor/归档备份,支持子版块情报分析、用户画像与内容策略提取。

原始描述

Stealth Reddit intelligence -- browse, read, and analyze any subreddit without getting blocked. Multi-layer fallback (OAuth API -> Stealth HTTP -> Browser St...

通过你的 Agent 添加

安装目录:reddit-spy/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/reddit-spy/
Codex CLI~/.codex/skills/reddit-spy/
DeepSeek Harness~/.agents/skills/reddit-spy/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Reddit Spy 是一款专为竞争情报设计的 Reddit 数据采集工具,通过五级回退架构(OAuth API → Tor SOCKS5 → Stealth HTTP → 浏览器隐身 → PullPush 归档)实现高可用性抓取。主要功能包括:

  • spy:综合子版块扫描,输出关于信息、热门帖、内容类型分布、钩子模式、发布时间分析
  • deep-read:完整帖文与嵌套评论的深度提取,支持指定递归深度
  • bulk-scan:多子版块批量扫描与横向对比
  • strategy:内容策略模式提取(标题类型、钩子模式、最佳发布时间)
  • search:关键词子版块内搜索
  • user-intel:用户发帖行为画像与跨版块分析
  • health-check:分层健康状态检测

显著优点

  1. 多层级容错:实时数据优先,归档数据保底,Tor 自动轮换 IP 规避封禁
  2. 策略洞察:自动分析内容类型(how-to/showcase/question 等)、标题钩子模式、最佳发布时段
  3. 纯读取设计:零交互风险,无发帖/评论/投票行为
  4. 结构化输出:所有命令返回 JSON,便于自动化集成

潜在缺点与局限

  • Tor 依赖:主链路依赖 Tor 网络,延迟与稳定性受 Tor 节点影响
  • 数据时效性:PullPush 归档层数据可能滞后数周至数月
  • VPS 限制:Stealth HTTP 与浏览器层在部分云 VPS IP 上被 Reddit 拦截
  • 速率限制:即使有 OAuth,仍受 60 请求/分钟限制
  • 法律灰色地带:大规模抓取可能违反 Reddit ToS,Tor 使用在某些场景下引发合规顾虑

适合人群

  • 增长黑客与内容营销人员研究竞品社区策略
  • 独立开发者分析 IndieHackers/SaaS 等垂直社区趋势
  • 市场研究员进行社媒情报(OSINT)采集
  • 需规避 IP 封禁的数据采集工程师

常规风险

风险类型 说明
平台封禁 Reddit 可能封禁 Tor 出口节点或检测到异常流量模式
数据合规 抓取用户生成内容可能涉及 GDPR/CCPA 等隐私法规
网络延迟 Tor 路由增加 200-500ms 典型延迟
归档滞后 PullPush 数据非实时,关键决策需交叉验证
依赖维护 Tor systemd 服务需手动监控,故障时自动降级但性能下降

建议生产环境搭配健康检查命令前置执行,并设置监控告警 Tor 服务状态。

技能正文


name: reddit-spy description: Stealth Reddit intelligence -- browse, read, and analyze any subreddit without getting blocked. Multi-layer fallback (OAuth API -> Stealth HTTP -> Browser Stealth -> PullPush archive).

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)

Layer Method Speed Data Status
1. OAuth API Reddit API v2 Fast Full real-time Optional (needs API key)
2. Tor SOCKS5 via Tor exit nodes Fast Full real-time ACTIVE -- primary layer
3. Stealth HTTP old.reddit.com direct Fast Full real-time Blocked on VPS IPs
4. Browser Stealth Playwright Slow Full real-time Blocked on VPS IPs
5. PullPush Archive API Fast Historical (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
Param Default Values
--subreddit (required) Subreddit name without r/
--sort top hot, new, top, rising
--timeframe week hour, day, week, month, year, all
--limit 25 Max 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

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

redditweb-scrapingtorsocial-media-intelligencecompetitive-analysisosintcontent-strategydata-archiving

同类 Skill