PRAW wraps Reddit's API for Python programs with OAuth-aware access. It handles Reddit rate-limit rules so callers avoid manual throttling.
Overview
PRAW, the Python Reddit API Wrapper, exposes Reddit objects such as subreddits, submissions, comments, and user listings through a Pythonic interface. Developers authenticate with script, installed, or web OAuth application credentials and then read or write Reddit data according to Reddit's API rules.
The library follows Reddit API guidance internally, including appropriate user agents, so client code does not need to insert arbitrary sleep calls for basic compliance. Typical tasks include posting links, replying to threads, iterating hot or moderator lists, and streaming or paging through results.
Documentation covers configuration, logging, multiple concurrent instances, and model-level behaviors. For asyncio environments the maintainers point users to Async PRAW as the supported asynchronous variant with parallel feature coverage.
Install via pip or uv on supported Python versions. Community support is directed to r/redditdev and the project's GitHub issue tracker rather than private maintainer messages.
Key features
- OAuth script, web, and installed app flows
- Subreddit, submission, and comment models
- Built-in Reddit rate limit handling
- Front page and listing iterators
- Moderator and wiki access patterns
- Configurable user agent and logging
- Refresh token tutorial workflows
- Companion Async PRAW for asyncio
Use cases
- Bots that reply or moderate subreddits
- Data collection from public Reddit listings
- Automation for account-specific scripts
- Teaching Reddit API usage in Python