360 Secure SkillHub
360 安全技能中心

Reddit Researcher

通过 shell 脚本按关键词和子版块检索 Reddit 帖子:优先使用 Bing,并可切换到 Google、DuckDuckGo 或 Reddit JSON 接口;随后抓取帖子内容提取痛点、诉求与常见主题,最后导出带时间戳的 Markdown 研究文件。依赖 curl、bash 与 python3,需设置关键词环境变量;文档对默认搜索引擎的描述与脚本说明存在不一致。

kryzl19
kryzl19
热度 37.69
最近更新 2026-05-11 17:36:59
分类:搜索依赖:代码执行 / 读写文件 / 第三方 API应用场景:研究 / 社交媒体 / 摘要总结 / 市场分析

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add strd-reddit-researcher
Metadata
name
reddit-researcher
description
Scan Reddit for posts matching keywords and summarize findings. Uses Bing primary + Reddit JSON API fallback — robust against DuckDuckGo bot blocking. Use when researching Reddit communities, finding pain points, or gathering user feedback on a topic.
metadata
{"openclaw":{"requires":{"bins":["curl"]},"install":[]}}

Reddit Researcher

Search Reddit for posts and comments matching your keywords, extract insights and pain points.

Environment Variables

Variable Required Default Description
REDDIT_SUBREDDITS No all Comma-separated list of subreddits (e.g., technology,programming)
REDDIT_KEYWORDS Yes — Comma-separated keywords to search for
REDDIT_SEARCH_ENGINE No bing Search engine: bing, google, or reddit (direct JSON API)

Scripts

scan.sh — Search Reddit

Searches Reddit for posts matching keywords using DuckDuckGo.

./scripts/scan.sh <keywords>

Output: List of Reddit post titles with URLs.

summarize.sh — Extract Pain Points

Fetches Reddit posts and extracts common themes, complaints, and requests.

./scripts/summarize.sh <post_urls_file>

Output: Markdown summary with pain points, desires, and patterns.

export.sh — Export Findings

Exports all research findings to a markdown file with timestamp.

./scripts/export.sh <summary_file>

Output: reddit-research-YYYY-MM-DD.md in the output directory.

Usage Example

export REDDIT_KEYWORDS="AI coding,ChatGPT,developer tools"
export REDDIT_SUBREDDITS="programming,technology,artificial"

# Search for posts
./scripts/scan.sh "$REDDIT_KEYWORDS" > posts.txt

# Summarize findings
./scripts/summarize.sh posts.txt

# Export results
./scripts/export.sh summary.md

Notes

  • Uses Bing as primary search engine, with Reddit JSON API and Google as fallbacks — designed to work even when DuckDuckGo blocks automated queries
  • Set REDDIT_SEARCH_ENGINE=reddit for direct Reddit API access (no search engine needed)
  • Respects rate limits; adds delays between requests
  • Results cached in ~/.openclaw/workspace/skills/reddit-researcher/cache/
  • Output format is Reddit markdown with proper link formatting