← 返回
沟通协作

Reddit (read only - no auth)

Browse and search Reddit in read-only mode using public JSON endpoints. Use when the user asks to browse subreddits, search for posts by topic, inspect comment threads, or build a shortlist of links to review and reply to manually.
以只读模式通过公共 JSON 接口浏览和搜索 Reddit。当用户要求浏览子版块、按主题搜索帖子、查看评论线程或整理待审阅和手动回复的链接列表时使用。
buksan1950
沟通协作 clawhub v1.0.0 1 版本 96914.9 Key: 无需
★ 42
Stars
📥 17,506
下载
💾 2,399
安装
1
版本
#latest

概述

Reddit Readonly

Read-only Reddit browsing for Clawdbot.

What this skill is for

  • Finding posts in one or more subreddits (hot/new/top/controversial/rising)
  • Searching for posts by query (within a subreddit or across all)
  • Pulling a comment thread for context
  • Producing a shortlist of permalinks so the user can open Reddit and reply manually

Hard rules

  • Read-only only. This skill never posts, replies, votes, or moderates.
  • Be polite with requests:
  • Prefer small limits (5–10) first.
  • Expand only if needed.
  • When returning results to the user, always include permalinks.

Output format

All commands print JSON to stdout.

  • Success: { "ok": true, "data": ... }
  • Failure: { "ok": false, "error": { "message": "...", "details": "..." } }

Commands

1) List posts in a subreddit

node {baseDir}/scripts/reddit-readonly.mjs posts <subreddit> \
  --sort hot|new|top|controversial|rising \
  --time day|week|month|year|all \
  --limit 10 \
  --after <token>

2) Search posts

# Search within a subreddit
node {baseDir}/scripts/reddit-readonly.mjs search <subreddit> "<query>" --limit 10

# Search all of Reddit
node {baseDir}/scripts/reddit-readonly.mjs search all "<query>" --limit 10

3) Get comments for a post

# By post id or URL
node {baseDir}/scripts/reddit-readonly.mjs comments <post_id|url> --limit 50 --depth 6

4) Recent comments across a subreddit

node {baseDir}/scripts/reddit-readonly.mjs recent-comments <subreddit> --limit 25

5) Thread bundle (post + comments)

node {baseDir}/scripts/reddit-readonly.mjs thread <post_id|url> --commentLimit 50 --depth 6

6) Find opportunities (multi-subreddit helper)

Use this when the user describes criteria like:

"Find posts about X in r/a, r/b, and r/c posted in the last 48 hours, excluding Y".

node {baseDir}/scripts/reddit-readonly.mjs find \
  --subreddits "python,learnpython" \
  --query "fastapi deployment" \
  --include "docker,uvicorn,nginx" \
  --exclude "homework,beginner" \
  --minScore 2 \
  --maxAgeHours 48 \
  --perSubredditLimit 25 \
  --maxResults 10 \
  --rank new

Suggested agent workflow

  1. Clarify scope if needed: subreddits + topic keywords + timeframe.
  2. Start with find (or posts/search) using small limits.
  3. For 1–3 promising items, fetch context via thread.
  4. Present the user a shortlist:
    • title, subreddit, score, created time
    • permalink
    • a brief reason why it matched
  5. If asked, propose draft reply ideas in natural language, but remind the user to post manually.

Troubleshooting

  • If Reddit returns HTML, re-run the command (the script detects this and returns an error).
  • If requests fail repeatedly, reduce --limit and/or set slower pacing via env vars:
export REDDIT_RO_MIN_DELAY_MS=800
export REDDIT_RO_MAX_DELAY_MS=1800
export REDDIT_RO_TIMEOUT_MS=25000
export REDDIT_RO_USER_AGENT='script:clawdbot-reddit-readonly:v1.0.0 (personal)'

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-27 23:20 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 113 📥 52,385
communication-collaboration

Gmail

byungkyu
Gmail API 集成,托管 OAuth,支持读取、发送和管理邮件、线程、标签及草稿,适用于需要与 Gmail 交互的场景。
★ 72 📥 37,718
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,670