Loading...
Loading...
Compare original and translation side by side
.envREDDIT_CLIENT_ID=your_client_id
REDDIT_CLIENT_SECRET=your_client_secret
REDDIT_USER_AGENT=your_app_name/1.0
OPENROUTER_API_KEY=your_openrouter_key # 用于 AI 分析.envREDDIT_CLIENT_ID=your_client_id
REDDIT_CLIENT_SECRET=your_client_secret
REDDIT_USER_AGENT=your_app_name/1.0
OPENROUTER_API_KEY=your_openrouter_key # 用于 AI 分析python scripts/search_reddit.py --query "关键词" [选项]--query--subreddit--limit--time_filter--sort--outputundefinedpython scripts/search_reddit.py --query "关键词" [选项]--query--subreddit--limit--time_filter--sort--outputundefinedundefinedundefinedpython scripts/fetch_posts.py --subreddit "subreddit名称" [选项]--subreddit--sort--limit--time_filter--include_comments--comment_limit--outputundefinedpython scripts/fetch_posts.py --subreddit "subreddit名称" [选项]--subreddit--sort--limit--time_filter--include_comments--comment_limit--outputundefinedundefinedundefinedpython scripts/analyze_reddit.py --input "数据文件" --analysis_type "分析类型" [选项]--input--analysis_type--model--output--formatsentimenttopicsummarycompetitivepain_pointsundefinedpython scripts/analyze_reddit.py --input "数据文件" --analysis_type "分析类型" [选项]--input--analysis_type--model--output--formatsentimenttopicsummarycompetitivepain_pointsundefinedundefinedundefined# 1. 搜索相关讨论
python scripts/search_reddit.py --query "your topic" --limit 100 --output data/search.json
# 2. 获取热门帖子
python scripts/fetch_posts.py --subreddit "relevant_sub" --include_comments --output data/posts.json# 3. 运行 AI 分析
python scripts/analyze_reddit.py --input data/search.json --analysis_type pain_points --output reports/analysis.md# 1. 搜索相关讨论
python scripts/search_reddit.py --query "your topic" --limit 100 --output data/search.json
# 2. 获取热门帖子
python scripts/fetch_posts.py --subreddit "relevant_sub" --include_comments --output data/posts.json# 3. 运行 AI 分析
python scripts/analyze_reddit.py --input data/search.json --analysis_type pain_points --output reports/analysis.mdundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined{
"query": "搜索词",
"timestamp": "2024-01-15T10:30:00Z",
"total_results": 50,
"results": [
{
"id": "post_id",
"title": "帖子标题",
"author": "用户名",
"subreddit": "subreddit名",
"score": 1234,
"num_comments": 56,
"created_utc": 1705312200,
"url": "https://reddit.com/...",
"selftext": "帖子内容...",
"comments": [...]
}
]
}{
"query": "搜索词",
"timestamp": "2024-01-15T10:30:00Z",
"total_results": 50,
"results": [
{
"id": "post_id",
"title": "帖子标题",
"author": "用户名",
"subreddit": "subreddit名",
"score": 1234,
"num_comments": 56,
"created_utc": 1705312200,
"url": "https://reddit.com/...",
"selftext": "帖子内容...",
"comments": [...]
}
]
}undefinedundefinedundefinedundefinedcd .claude/skills/research-by-reddit/scripts
pip install -r requirements.txtcd .claude/skills/research-by-reddit/scripts
pip install -r requirements.txt