Redditスキル
公開JSON APIを介してRedditから投稿、コメント、サブレディット情報、ユーザープロフィールを取得します。
前提条件
APIキーは不要です! Redditの公開JSON APIは認証なしで動作します。
クイックチェック:
cd <skill_directory>
python3 scripts/get_posts.py python --limit 3
コマンド
すべてのコマンドはスキルディレクトリから実行します。
サブレディットの投稿
python3 scripts/get_posts.py python --limit 20 # Hot posts (default)
python3 scripts/get_posts.py python --sort new --limit 20
python3 scripts/get_posts.py python --sort top --time week
python3 scripts/get_posts.py python --sort top --time all --limit 10
投稿の検索
python3 scripts/search_posts.py "AI agent" --limit 20
python3 scripts/search_posts.py "MCP server" --subreddit ClaudeAI --limit 10
python3 scripts/search_posts.py "async python" --sort top --time year
サブレディット情報
python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI
投稿とコメント
python3 scripts/get_post.py abc123 # Get post by ID
python3 scripts/get_post.py abc123 --comments 50 # With more comments
ユーザープロフィール
python3 scripts/get_user.py spez
python3 scripts/get_user.py spez --posts 10 # Include recent posts
ソートオプション
| ソート | 説明 | 時間オプション |
|---|---|---|
hot | トレンド投稿(デフォルト) | - |
new | 最新の投稿 | - |
top | 最高評価 | 時, 日, 週, 月, 年, すべて |
rising | 注目度上昇中 | - |
controversial | 賛否両論 | 時, 日, 週, 月, 年, すべて |
API情報
- メソッド: 公開JSON API(認証不要)
- TIPS: 任意のReddit URLに
.jsonを追加 - レート制限: 100リクエスト/分
- ドキュメント: https://www.reddit.com/dev/api


