NanoSkill
提交你的 Skill

Reddit 內容檢索代理技能

作者ReScienceLab911GitHub 星標GitHub

使用 Reddit 的公開 JSON API 檢索貼文、留言、子版塊資訊和使用者個人資料。無需 API 金鑰即可存取即時討論和社群洞見。

reddit安全掃描通過

安裝指令

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

關於

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

此技能提供一套全面的指令來與 Reddit 資料互動。使用者可以從特定子版塊檢索貼文,根據「熱門」、「最新」或「熱門」等各種標準排序,並套用時間篩選來縮小結果範圍。除了一般瀏覽之外,它還支援基於關鍵字的貼文搜尋,以便對特定主題進行針對性研究。你也可以深入到個別貼文中擷取留言,或取得有關子版塊和使用者個人資料的詳細資訊。

Reddit 內容檢索技能非常適合研究人員、資料分析師或開發人員,它簡化了收集 Reddit 內容以進行情緒分析、趨勢監控、內容彙整或建立自訂應用程式的過程。其易用性加上可存取的資料深度,使其成為理解 Reddit 上公眾議論和社群動態的寶貴資產。

核心功能

它的強大之處

  • 無需 API 金鑰

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

  • 全面的內容檢索

    輕鬆擷取各類 Reddit 內容,包括個別貼文、相關留言、詳細的子版塊資訊和使用者個人資料。

  • 彈性搜尋與排序

    利用多樣化的排序選項,例如「熱門」、「最新」、「最高票」、「崛起中」和「爭議性」來排序貼文,並搭配時間篩選(小時、天、週、月、年、全部)來精煉你的 Reddit 內容搜尋。

  • 直接存取子版塊與使用者資料

    快速擷取特定子版塊或使用者個人資料的資訊,包括使用者的最近貼文,以深入了解社群和個人活動。

使用場景

什麼時候適合使用

  • 監控子版塊討論

    追蹤特定子版塊內的熱門主題、新貼文或最佳討論,以掌握社群情緒和熱門內容。

  • 分析使用者活動

    擷取使用者個人資料及其最近的貼文,以了解特定 Reddit 使用者的貢獻、興趣或互動模式。

  • 研究特定主題

    使用關鍵字在整個 Reddit 或特定子版塊中搜尋貼文,以收集任何給定主題的資訊和洞見。

SKILL.md

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(無需驗證)
  • 技巧:在任何 Reddit URL 後加上 .json
  • 速率限制:每分鐘 100 個請求
  • 文件https://www.reddit.com/dev/api

常見問題