# 红迪内容检索代理技能

> 使用红迪的公开 JSON API 检索帖子、评论、子版块信息和用户资料。无需 API 密钥即可获取实时讨论和社区洞察。

- Canonical: https://nanoskill.ai/zh/skills/reddit-content-retrieval
- Markdown: https://nanoskill.ai/zh/skills/reddit-content-retrieval.md
- Author: ReScienceLab
- Published: 2026-06-14T02:30:00.000Z
- Updated: 2026-07-23T03:32:24.579Z
- Language: zh-CN
- 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

红迪内容检索技能提供了一种强大而简单的方式来访问红迪上的大量信息。通过利用红迪的公开 JSON API，该技能使用户能够以编程方式获取帖子、评论、子版块详情和用户资料，而无需任何 API 密钥或复杂的身份验证过程。对于任何希望分析社区讨论、追踪趋势或从互联网最大的社交平台之一收集数据的人来说，这都是一个必不可少的工具。

该技能提供了一套全面的命令来与红迪数据进行交互。用户可以从特定子版块检索帖子，按“热门”、“最新”或“最佳”等各种标准排序，并应用时间过滤器来缩小结果范围。除了常规浏览外，它还支持基于关键词的帖子搜索，以便对特定主题进行有针对性的研究。您还可以深入单个帖子以提取评论，或获取有关子版块和用户资料的详细信息。

红迪内容检索技能非常适合研究人员、数据分析师或开发人员，它简化了收集红迪内容的过程，用于情感分析、趋势监测、内容聚合或构建自定义应用程序。它的易用性加上可访问的数据深度，使其成为理解红迪上公众讨论和社区动态的宝贵资产。

## Key features

- **无需API密钥**: 直接访问Reddit的公共JSON API，无需身份验证或API密钥，简化设置并可立即使用。
- **全面的内容检索**: 轻松获取各类Reddit内容，包括单篇帖子、相关评论、详细的子版块信息和用户资料。
- **灵活的搜索和排序**: 利用多样的排序选项，如'热门'、'最新'、'最佳'、'上升'和'争议'，以及时间过滤器（小时、天、周、月、年、所有）来精炼您的Reddit内容搜索。
- **直接访问子版块和用户数据**: 快速获取特定子版块或用户资料的信息，包括用户的近期帖子，以洞察社区和个人活动。

## Use cases

- **监控子版块讨论**: 跟踪特定子版块内的热门话题、新帖或最佳讨论，随时了解社区情绪和流行内容。
- **分析用户活动**: 检索用户资料及其近期帖子，了解特定Reddit用户的贡献、兴趣或参与模式。
- **研究特定话题**: 使用关键词在整个Reddit或特定子版块内搜索帖子，收集任何给定话题的信息和见解。

## Result preview

探索由本技能支持的、可直接使用的红迪市场情报报告。

![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

### 安装

将红迪市场情报技能添加到您的 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)

### 分析数据

提供一个主题或产品以提取红迪见解。

![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

# 红迪技能

通过公开 JSON API 从红迪获取帖子、评论、子版块信息和用户资料。

## 前提条件

**无需 API 密钥！** 红迪的公开 JSON API 无需身份验证即可使用。

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

## 命令

所有命令从技能目录运行。

### 子版块帖子
```bash
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
```

### 搜索帖子
```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
```

### 子版块信息
```bash
python3 scripts/get_subreddit.py python
python3 scripts/get_subreddit.py ClaudeAI
```

### 帖子和评论
```bash
python3 scripts/get_post.py abc123                       # Get post by ID
python3 scripts/get_post.py abc123 --comments 50         # With more comments
```

### 用户资料
```bash
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（无需认证）
- **技巧**：在任何红迪 URL 后添加 `.json`
- **速率限制**：100 次请求/分钟
- **文档**：https://www.reddit.com/dev/api

## FAQ

### 什么是红迪内容检索技能？

Reddit内容检索技能允许您通过其公共JSON API程序化地访问和检索Reddit上的各类内容，例如帖子、评论、子版块详情和用户资料。

### 使用此技能需要API密钥吗？

不需要，您无需API密钥。此技能利用Reddit的公共JSON API，基本内容检索无需身份验证。

### 我可以检索哪些类型的Reddit内容？

您可以检索子版块帖子（热门、最新、最佳、上升、争议），通过关键词搜索帖子，获取详细的子版块信息，获取单个帖子及其评论，以及访问用户资料（包括其近期帖子）。

### 如何对检索到的Reddit帖子进行排序？

帖子可以按'热门'（默认）、'最新'、'最佳'、'上升'或'争议'排序。对于'最佳'和'争议'排序，您还可以指定时间范围，如小时、天、周、月、年或所有时间。

### 使用Reddit公共JSON API有速率限制吗？

是的，Reddit的公共JSON API有速率限制，每分钟100个请求。请务必遵守此限制以确保持续访问。

### 我可以获取特定帖子的评论吗？

是的，您可以通过ID检索特定帖子，并指定希望同时获取的评论数量。
