# Reddit 內容擷取代理技能

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

- Canonical: https://nanoskill.ai/tw/skills/reddit-content-retrieval
- Markdown: https://nanoskill.ai/tw/skills/reddit-content-retrieval.md
- Author: ReScienceLab
- Published: 2026-06-14T02:30:00.000Z
- Updated: 2026-07-23T03:32:24.579Z
- Language: zh-TW
- Source type: github
- Popularity signal: 911

## Sources

- https://github.com/ReScienceLab/opc-skills

## Install

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

## About

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

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

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

## Key features

- **無需 API 金鑰**: 直接存取 Reddit 的公開 JSON API，無需驗證或 API 金鑰，簡化設定並可立即使用。
- **全面的內容檢索**: 輕鬆擷取各種類型的 Reddit 內容，包括個別貼文、相關留言、詳細的看板資訊和使用者個人檔案。
- **靈活的搜尋與排序**: 利用多種排序選項，如「熱門」、「最新」、「頂尖」、「上升中」和「爭議性」來排序貼文，並搭配時間篩選器（小時、天、週、月、年、所有）來精煉您的 Reddit 內容搜尋。
- **直接的看板與使用者資料存取**: 快速檢索特定看板或使用者個人檔案的資訊，包括使用者的近期貼文，以深入了解社群和個人活動。

## Use cases

- **監控看板討論**: 追蹤特定看板內的熱門話題、最新貼文或頂尖討論，以隨時掌握社群情緒和熱門內容。
- **分析使用者活動**: 檢索使用者個人檔案及其近期貼文，以了解特定 Reddit 使用者的貢獻、興趣或參與模式。
- **研究特定主題**: 使用關鍵字跨 Reddit 或特定看板搜尋貼文，以收集任何給定主題的資訊和見解。

## Result preview

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

![Clean minimalist cover page for a confidential strategy document titled FlowMind Reddit Market Intelligence Report. The layout features large bold black typography for 'FlowMind' and a subtitle describing Reddit-based market intelligence, with a supporting line 'Turn community intelligence into product advantage'. A small header reads 'CONFIDENTIAL STRATEGY ARTIFACT'. On the right side is a geometric network visualization representing connected Reddit community insights and discussion graphs. Footer tags include 'June 2026' and 'Reddit sentiment analysis'. The overall style resembles a modern consulting-grade research report cover with strong whitespace and data-network aesthetics.](https://file.nanoskill.ai/reddit-retrieval-outcome1.png)

![Insight dashboard from a Reddit-based market intelligence report showing four key findings in a clean card grid layout. Insight 1 states 'Fragmentation is the wedge', describing how users manage knowledge across 3–5 tools and add AI agents as another silo. Insight 2 highlights 'AI fatigue is rising', noting users spend increasing time configuring prompts and automations, turning convenience into cognitive load. Insight 3 states 'Trust is the adoption ceiling', explaining that reliability issues, hallucinations, and opaque agent behavior reduce user confidence in AI tools. Insight 4 shows 'Integrated products win comparisons', stating that all-in-one solutions reduce tool switching and are preferred in 73% of comparisons. Below the insights are metric cards showing 68% of users frustrated with current AI productivity tools, 42% reporting fragmented workflows, and 57% wanting AI that understands their knowledge base.](https://file.nanoskill.ai/reddit-retrieval-outcome2.png)

![Data visualization slide titled 'Community signal is polarized, active, and unusually diagnostic.' The graphic shows a segmented donut chart representing thread-level sentiment distribution: Positive 35%, Mixed 30%, Negative 20%, and Neutral 15%. To the right, observed communities are listed as pill tags including r/ClaudeAI, r/ChatGPT, r/Productivity, r/Notion, r/ObsidianMD, r/zapier, r/SaaS, r/automation, and r/Artificial. The overall layout presents Reddit community sentiment analysis across AI and productivity-related subreddits, emphasizing polarized but highly active discussion patterns.](https://file.nanoskill.ai/reddit-retrieval-outcome3.png)

![A trend analysis dashboard showing emerging AI technology categories ranked by signal velocity and month-over-month growth. The vertical list includes Multi-Agent Workflows (+45% MoM, Early stage), Personal Knowledge Graphs (+38% MoM, Growing), On-Device AI Processing (+28% MoM, Niche), AI-Native Collaboration (+52% MoM, Early stage), and Voice-First Interfaces (+20% MoM, Niche). Each category is displayed with a horizontal signal velocity bar on the right indicating momentum strength, using gradient progress bars in blue, purple, and orange tones. The layout presents a comparative overview of AI innovation trends and adoption maturity levels.](https://file.nanoskill.ai/reddit-retrieval-outcome4.png)

## Result walkthrough

### 安裝

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

![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.](https://file.nanoskill.ai/reddit-retrieval-install.png)

### 分析資料

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

![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.](https://file.nanoskill.ai/reddit-retrieval-task)

### 產生洞見

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

![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.](https://file.nanoskill.ai/reddit-retrieval-outcome.png)

## Skill definition

# Reddit 技能

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

## 先決條件

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

**快速檢查**：
```bash
cd <skill_directory>
python3 scripts/get_posts.py python --limit 3
```

## 指令

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

### Subreddit 貼文
```bash
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
```

### 搜尋貼文
```bash
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 資訊
```bash
python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI
```

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

### 使用者檔案
```bash
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

## FAQ

### 什麼是 Reddit 內容擷取技能？

Reddit 內容檢索技能讓您能夠使用其公開的 JSON API，以程式化方式存取和擷取 Reddit 上的各種內容，例如貼文、留言、看板詳細資訊和使用者個人檔案。

### 使用這個技能需要 API 金鑰嗎？

不需要，您不需要 API 金鑰。此技能利用 Reddit 的公開 JSON API，它不需要驗證即可進行基本的內容檢索。

### 我可以檢索哪些類型的 Reddit 內容？

您可以檢索看板貼文（熱門、最新、頂尖、上升中、爭議性），透過關鍵字搜尋貼文，取得詳細的看板資訊，擷取個別貼文及其留言，以及存取使用者個人檔案，包括其最近的貼文。

### 如何排序檢索到的 Reddit 貼文？

貼文可以依據「熱門」（預設）、「最新」、「頂尖」、「上升中」或「爭議性」進行排序。對於「頂尖」和「爭議性」排序，您還可以指定時間範圍，例如小時、天、週、月、年或所有時間。

### 使用 Reddit 公開 JSON API 是否有速率限制？

是的，Reddit 公開 JSON API 的速率限制為每分鐘 100 個請求。為了確保持續存取，遵守此限制非常重要。

### 我可以取得特定貼文的留言嗎？

是的，您可以透過貼文的 ID 檢索特定貼文，並指定您想要一併擷取的留言數量。
