NanoSkill
提交你的 Skill

红迪内容检索代理技能

作者ReScienceLab911GitHub 星标GitHub

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

红迪安全扫描通过
结果预览

完整 Demo

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

开始使用

完成第一个任务

  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

    安装

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

    分析数据

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

  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

关于

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

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

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

核心功能

它的强大之处

  • 无需API密钥

    直接访问Reddit的公共JSON API,无需身份验证或API密钥,简化设置并可立即使用。

  • 全面的内容检索

    轻松获取各类Reddit内容,包括单篇帖子、相关评论、详细的子版块信息和用户资料。

  • 灵活的搜索和排序

    利用多样的排序选项,如'热门'、'最新'、'最佳'、'上升'和'争议',以及时间过滤器(小时、天、周、月、年、所有)来精炼您的Reddit内容搜索。

  • 直接访问子版块和用户数据

    快速获取特定子版块或用户资料的信息,包括用户的近期帖子,以洞察社区和个人活动。

使用场景

什么时候适合使用

  • 监控子版块讨论

    跟踪特定子版块内的热门话题、新帖或最佳讨论,随时了解社区情绪和流行内容。

  • 分析用户活动

    检索用户资料及其近期帖子,了解特定Reddit用户的贡献、兴趣或参与模式。

  • 研究特定话题

    使用关键词在整个Reddit或特定子版块内搜索帖子,收集任何给定话题的信息和见解。

SKILL.md

红迪技能

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

前提条件

无需 API 密钥! 红迪的公开 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(无需认证)
  • 技巧:在任何红迪 URL 后添加 .json
  • 速率限制:100 次请求/分钟
  • 文档https://www.reddit.com/dev/api

常见问题