Reddit Researcher
Search Reddit for posts and comments matching your keywords, extract insights and pain points.
Environment Variables
| Variable | Required | Default | Description |
|---|
| INLINECODE0 | No | INLINECODE1 | Comma-separated list of subreddits (e.g., technology,programming) |
| INLINECODE3 |
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.
CODEBLOCK0
Output: List of Reddit post titles with URLs.
summarize.sh — Extract Pain Points
Fetches Reddit posts and extracts common themes, complaints, and requests.
CODEBLOCK1
Output: Markdown summary with pain points, desires, and patterns.
export.sh — Export Findings
Exports all research findings to a markdown file with timestamp.
CODEBLOCK2
Output: reddit-research-YYYY-MM-DD.md in the output directory.
Usage Example
CODEBLOCK3
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 INLINECODE11
- Output format is Reddit markdown with proper link formatting
Reddit 研究员
在 Reddit 上搜索与关键词匹配的帖子和评论,提取洞察和痛点。
环境变量
| 变量 | 必填 | 默认值 | 描述 |
|---|
| REDDITSUBREDDITS | 否 | all | 以逗号分隔的子版块列表(例如:technology,programming) |
| REDDITKEYWORDS |
是 | — | 以逗号分隔的待搜索关键词 |
| REDDIT
SEARCHENGINE | 否 | bing | 搜索引擎:bing、google 或 reddit(直接 JSON API) |
脚本
scan.sh — 搜索 Reddit
使用 DuckDuckGo 在 Reddit 上搜索与关键词匹配的帖子。
bash
./scripts/scan.sh <关键词>
输出: 包含 URL 的 Reddit 帖子标题列表。
summarize.sh — 提取痛点
获取 Reddit 帖子并提取常见主题、抱怨和需求。
bash
./scripts/summarize.sh <帖子URL文件>
输出: 包含痛点、需求和模式的 Markdown 摘要。
export.sh — 导出结果
将所有研究结果导出为带时间戳的 Markdown 文件。
bash
./scripts/export.sh <摘要文件>
输出: 输出目录中的 reddit-research-YYYY-MM-DD.md 文件。
使用示例
bash
export REDDIT_KEYWORDS=AI coding,ChatGPT,developer tools
export REDDIT_SUBREDDITS=programming,technology,artificial
搜索帖子
./scripts/scan.sh $REDDIT_KEYWORDS > posts.txt
摘要结果
./scripts/summarize.sh posts.txt
导出结果
./scripts/export.sh summary.md
备注
- - 使用 Bing 作为主要搜索引擎,以 Reddit JSON API 和 Google 作为备选——设计用于在 DuckDuckGo 阻止自动查询时仍能正常工作
- 设置 REDDITSEARCHENGINE=reddit 可直接访问 Reddit API(无需搜索引擎)
- 遵守速率限制;在请求之间添加延迟
- 结果缓存于 ~/.openclaw/workspace/skills/reddit-researcher/cache/
- 输出格式为带有正确链接格式的 Reddit Markdown