← 返回
安全合规

Reddit Cli

Reddit CLI using cookies for authentication. Read posts, search, and get subreddit info.
使用 Cookie 认证的 Reddit 命令行工具。支持阅读帖子、搜索及获取子版块信息。
kelsia14
安全合规 clawhub v1.0.2 1 版本 99246.6 Key: 无需
★ 4
Stars
📥 4,267
下载
💾 358
安装
1
版本
#latest

概述

Reddit CLI

Read Reddit using your session cookies. No API key needed.

Quick start

reddit-cli posts programming 10       # Get 10 hot posts
reddit-cli posts gaming 5 top         # Get top 5 posts
reddit-cli search "python tutorial"   # Search all Reddit
reddit-cli search "help" --sub linux  # Search in subreddit
reddit-cli info AskReddit             # Subreddit info
reddit-cli check                      # Test connection

Commands

Get posts from subreddit

reddit-cli posts <subreddit> [limit] [sort]
  • limit: number of posts (default: 10)
  • sort: hot, new, top, rising (default: hot)

Search Reddit

reddit-cli search <query> [--sub <subreddit>] [limit]

Get subreddit info

reddit-cli info <subreddit>

Check connection

reddit-cli check

Environment

Set these in ~/.bashrc:

export REDDIT_SESSION="your_reddit_session_cookie"
export TOKEN_V2="your_token_v2_cookie"  # optional

Getting cookies

  1. Go to reddit.com (logged in)
  2. DevTools (F12) → Application → Cookies → reddit.com
  3. Copy reddit_session value
  4. Optionally copy token_v2 value

Notes

  • Cookies expire, you may need to refresh them periodically
  • Respects Reddit's rate limits
  • For personal use only

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-28 10:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,694
security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,133
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,127