Skip to main content

Agentic Reddit — anonymous browser-backed, read-only Reddit retrieval.

Project description

Agentic Reddit

Agentic Reddit is a read-only CLI for anonymous Reddit retrieval. It uses a browser session to read structured Reddit JSON and writes results to files.

Important limits

  • No Reddit account, API key, login, or credentials are used or accepted.
  • Run one-time setup before reading. It downloads an isolated browser and warms a persistent browser profile; the browser download uses hundreds of MB of disk space.
  • Anonymous Reddit access has a practical budget of about 100 requests per 10 minutes. The CLI observes Reddit's rate-limit headers and paces requests; large comment trees and broad searches can stop at the budget.
  • Results can include NSFW content. Content is not filtered; posts and subreddits expose over_18 when Reddit provides it.
  • Commands are read-only. They cannot post, comment, vote, subscribe, save, send messages, or access a personalized account feed.
  • Output can contain third-party personal data. See DISCLAIMER.md and SECURITY.md.

Installation

Python 3.11 or later is required.

pip install agentic-reddit
agentic-reddit setup

setup takes no credentials. Use agentic-reddit setup --headed when a visible browser is needed for setup, or agentic-reddit setup --force to download or warm again.

Quick usage

Read commands write JSON (or NDJSON) to an output file and print a short summary to stderr. Without --output, files are written under the platform data directory, not the current directory.

# Read a subreddit listing
agentic-reddit subreddit python --sort hot --limit 20 --output python.json

# Read a post and its comment tree
agentic-reddit post https://www.reddit.com/r/python/comments/abc123/title/ \
  --depth 3 --comment-limit 500 --output post.json


# Search posts in one subreddit
agentic-reddit search "type hints" --subreddit python --type link --limit 20 \
  --output search.json

# Inspect readiness and available rate budget
agentic-reddit status --json
agentic-reddit doctor

Replace the synthetic abc123 id with a real post id or pass a real Reddit permalink.

The available read primitives are:

  • subreddit <name> — listing; all and popular provide public front pages.
  • post <url|id> — a post and its comment tree.
  • user <name> — public activity; use --type overview|submitted|comments|top.
  • search <query> — use --type link|sr|user and optionally --subreddit.
  • subreddits <query> — find subreddits.
  • subreddit-info <name> — subreddit metadata, including over_18 and quarantine state.

Use agentic-reddit catalog --json for the parser-derived command catalog and agentic-reddit schema --json for the output JSON Schema. Both are offline commands and do not start a browser.

Output and rate limits

Every read primitive supports --format json|ndjson, --output PATH, --wait-on-limit with optional --max-wait SECONDS, --profile, --profile-dir, --raw/--no-redact, and -v/--verbose. subreddit, user, and search --type link additionally support --limit N and --since/--until date windows; a date window forces new ordering. Non-link search types reject date windows. subreddits supports --limit only; post supports --depth and --comment-limit only; singular subreddit-info supports neither group.

Comment-tree retrieval is adaptive and bounded by --depth and --comment-limit. A result can report that expansion stopped because of a depth, comment, request, or rate limit; that does not mean the tree is complete. On a rate limit, exit 3 can follow a saved partial result; when --since was requested but its lower boundary was not confirmed, exit 7 takes precedence. The tool does not provide crawl, batch, daemon, write, login, or OAuth features.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentic_reddit-0.2.0.tar.gz (153.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentic_reddit-0.2.0-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

Details for the file agentic_reddit-0.2.0.tar.gz.

File metadata

  • Download URL: agentic_reddit-0.2.0.tar.gz
  • Upload date:
  • Size: 153.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for agentic_reddit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 63984c5e8db7d5098e8e9905b8f12031563341bb32a25157d82f7f43ba00d253
MD5 c2420a298983f15b4552aedf20c9f638
BLAKE2b-256 b0bba1a01ba831f0ed8b4937ec062128ed65ac7d285fc1b22227d9725545c29b

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_reddit-0.2.0.tar.gz:

Publisher: publish.yml on tjdwls101010/Agentic-Reddit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentic_reddit-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: agentic_reddit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 39.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for agentic_reddit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e87be87596600461f2cc15cc8a293641d25b6f806264c001a13e4024d908e7cd
MD5 07c83931998a3233f4c29bd09d63f383
BLAKE2b-256 23b3e93e4713fb06895cd9b6c61c33345dcea113273b53f4e5b53a26ce19ef97

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentic_reddit-0.2.0-py3-none-any.whl:

Publisher: publish.yml on tjdwls101010/Agentic-Reddit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page