mcpField
R
reddit

reddit

github.com/resciencelab生産性1.9k3.4k 回インストール1 日前に更新
リポジトリ

reddit について

redditは、Redditの公開JSON APIから投稿、コメント、サブレディット情報、ユーザープロフィールを取得するスキルです。APIキー認証なしでRedditのデータを調査する用途に向いています。

主な機能

  1. 01並べ替えや期間を指定した投稿取得
  2. 02サブレディットを指定した投稿検索
  3. 03投稿の詳細とコメントの取得
  4. 04サブレディット情報の表示
  5. 05ユーザープロフィールと最近の投稿取得

活用シーン

  1. 01特定テーマの議論を調査
  2. 02特定サブレディットの投稿を追跡
  3. 03投稿とコメントを確認
  4. 04Redditユーザーの最近の活動を確認

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/resciencelab/opc-skills --skill reddit

インストール後、Claude Code で/redditを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

.claude-plugin/
plugin.json
scripts/
credential.py
get_post.py
get_posts.py
get_subreddit.py
get_user.py
reddit_api.py
search_posts.py

詳細

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投票数が最も多い投稿hour、day、week、month、year、all
rising注目度が高まっている投稿-
controversial賛否が分かれている投稿hour、day、week、month、year、all

API 情報

  • 方式:公開 JSON API(認証不要)
  • コツ:Reddit の任意の URL の末尾に .json を追加します
  • レート制限:1 分あたり 100 リクエスト
  • ドキュメント:https://www.reddit.com/dev/api

コメント