NanoSkill
提交你的 Skill

Reddit 內容擷取代理技能

作者ReScienceLab911GitHub 星標GitHub

透過 Reddit 的公開 JSON API 擷取貼文、留言、subreddit 資訊和使用者檔案。無需 API 金鑰即可存取即時討論和社群洞見。

reddit安全掃描通過
結果預覽

完整 Demo

探索由此技能驅動、已可投入生產的 Reddit 市場情報報告。

開始使用

完成第一個任務

  1. Terminal-based AI agent interface showing installation of a Reddit retrieval skill from the ReScienceLab opc-skills repository using an npx skills add command. The system processes an interactive agent selection prompt, selects Claude Code, retries installation with an auto-confirm flag, and successfully installs the Reddit skill. The output confirms symlink setup for Hermes Agent and shows capability details including accessing Reddit via public JSON endpoints without API keys. A command reference table lists available scripts such as get_posts, search_posts, get_subreddit, get_post by ID, and get_user profile data, enabling Reddit content search, retrieval, and analysis workflows.
    01

    安裝

    將 Reddit 市場情報技能加入您的 AI 代理。

  2. AI agent interface showing a detailed prompt for generating a Reddit-based market intelligence report for FlowMind, an AI productivity startup. The instructions describe extracting and analyzing real Reddit discussions across relevant subreddits to understand user sentiment, pain points, feature requests, adoption barriers, and competitor comparisons. The workflow specifies structured output sections including sentiment analysis, key frustrations, feature expectations, competitor mentions, emerging trends, and direct user quotes. A follow-up section shows the agent planning research, critiquing subreddit selection strategy, and preparing to launch parallel data collection and synthesis for high-confidence insights.
    02

    分析資料

    提供一個主題或產品以擷取 Reddit 洞見。

  3. Clean executive cover page for a confidential strategy document titled FlowMind Reddit Market Intelligence Report. The design uses a minimalist white background with bold black typography for 'FlowMind' and a subtitle describing Reddit-based market intelligence. A small label indicates 'CONFIDENTIAL STRATEGY ARTIFACT' at the top. The page includes a visual network graph on the right representing community connections and Reddit discussion networks, along with tags such as June 2026 and Reddit sentiment analysis. The layout resembles a consulting-style research report cover focused on turning community intelligence into product advantage.
    03

    產生洞見

    產出包含主要結論和建議的結構化報告。

安裝指令

$ npx skills add https://github.com/ReScienceLab/opc-skills/tree/main/skills/reddit

關於

Reddit 內容擷取技能提供一種強大且直接的方式來存取 Reddit 上大量的資訊。透過利用 Reddit 的公開 JSON API,此技能讓使用者無需任何 API 金鑰或複雜的驗證程序,就能以程式化方式擷取貼文、留言、subreddit 詳細資訊和使用者檔案。對於想要分析社群討論、追蹤趨勢,或是從這個最大型的網路社交平台之一收集資料的任何人來說,它都是一個不可或缺的工具。

此技能提供一套全面的指令來與 Reddit 資料互動。使用者可以從特定 subreddit 擷取貼文,並依「hot」、「new」或「top」等不同條件排序,以及套用時間篩選來縮小結果範圍。除了一般的瀏覽,它還支援基於關鍵字的貼文搜尋,以便針對特定主題進行研究。您也可以深入個別貼文來擷取留言,或提取 subreddit 和使用者檔案的詳細資訊。

對於研究人員、資料分析師或開發人員而言,Reddit 內容擷取技能簡化了收集 Reddit 內容以進行情感分析、趨勢監控、內容彙整或建構自訂應用程式的過程。它的易用性加上可存取的資料深度,使其成為了了解 Reddit 上公眾論述和社群動態的寶貴資產。

核心功能

它的強大之處

  • 無需 API 金鑰

    直接存取 Reddit 的公開 JSON API,無需驗證或 API 金鑰,簡化設定並可立即使用。

  • 全面的內容檢索

    輕鬆擷取各種類型的 Reddit 內容,包括個別貼文、相關留言、詳細的看板資訊和使用者個人檔案。

  • 靈活的搜尋與排序

    利用多種排序選項,如「熱門」、「最新」、「頂尖」、「上升中」和「爭議性」來排序貼文,並搭配時間篩選器(小時、天、週、月、年、所有)來精煉您的 Reddit 內容搜尋。

  • 直接的看板與使用者資料存取

    快速檢索特定看板或使用者個人檔案的資訊,包括使用者的近期貼文,以深入了解社群和個人活動。

使用場景

什麼時候適合使用

  • 監控看板討論

    追蹤特定看板內的熱門話題、最新貼文或頂尖討論,以隨時掌握社群情緒和熱門內容。

  • 分析使用者活動

    檢索使用者個人檔案及其近期貼文,以了解特定 Reddit 使用者的貢獻、興趣或參與模式。

  • 研究特定主題

    使用關鍵字跨 Reddit 或特定看板搜尋貼文,以收集任何給定主題的資訊和見解。

SKILL.md

Reddit 技能

透過公開 JSON API 從 Reddit 取得貼文、留言、subreddit 資訊和使用者檔案。

先決條件

無需 API 金鑰! Reddit 的公開 JSON API 無需驗證即可運作。

快速檢查

cd <skill_directory>
python3 scripts/get_posts.py python --limit 3

指令

所有指令都從技能目錄執行。

Subreddit 貼文

python3 scripts/get_posts.py python --limit 20           # 熱門貼文(預設)
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

Subreddit 資訊

python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI

貼文與留言

python3 scripts/get_post.py abc123                       # 透過 ID 取得貼文
python3 scripts/get_post.py abc123 --comments 50         # 取得更多留言

使用者檔案

python3 scripts/get_user.py spez
python3 scripts/get_user.py spez --posts 10              # 包含近期貼文

排序選項

排序說明時間選項
hot熱門貼文(預設)-
new最新貼文-
top最高票小時、天、週、月、年、全部
rising逐漸受到關注-
controversial正反意見皆有小時、天、週、月、年、全部

API 資訊

  • 方法:公開 JSON API(無需驗證)
  • 技巧:在任何 Reddit URL 後加上 .json
  • 速率限制:100 個請求/每分鐘
  • 文件https://www.reddit.com/dev/api

常見問題