github.com/praw-dev/praw ↗
PRAW, an acronym for "Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.
Open this visualization on its own page →
About praw-dev/praw
PRAW is a Python package that provides a straightforward wrapper around Reddit's API, making it easy for developers to programmatically interact with Reddit without having to handle the complexities of OAuth authentication or API rate limiting directly. The library automatically manages rate limits and request throttling according to Reddit's API rules, so developers don't need to manually insert sleep calls in their code.
The package allows users to perform a wide range of Reddit operations including creating submissions, posting comments, retrieving subreddit data, accessing moderator listings, and browsing content like the front page or specific subreddits. Users authenticate by providing credentials for a script-type OAuth application and then use simple, intuitive Python methods to interact with Reddit's data and functionality.
PRAW supports Python 3.9 and later and is distributed through PyPI for easy installation. The project has been maintained since 2010 and was completely rewritten as PRAW4 in 2016. For asynchronous use cases such as Discord bots, the project recommends using Async PRAW, the official asynchronous version with similar features and API.