PRAW: The Python Reddit Api Wrapper
PRAW, an acronym for “Python Reddit API Wrapper”, is a python package that allows for simple access to reddit’s API. PRAW aims to be as easy to use as possible and is designed to follow all of reddit’s API rules. You have to give a useragent that follows the rules, everything else is handled by PRAW so you needn’t worry about violating them.
Here’s a quick peek, getting the first 5 submissions from the ‘hot’ section of the ‘opensource’ subreddit:
>>> import praw
>>> r = praw.Reddit(user_agent='my_cool_application')
>>> submissions = r.get_subreddit('opensource').get_hot(limit=5)
>>> [str(x) for x in submissions]
This will display something similar to the following:
['10 :: Gun.io Debuts Group Funding for Open Source Projects\n Gun.io',
'24 :: Support the Free Software Foundation',
'67 :: The 10 Most Important Open Source Projects of 2011',
'85 :: Plan 9 - A distributed OS with a unified communicatioprotocol I/O...',
'2 :: Open-source webOS is dead on arrival ']
Installation
PRAW works with python 2.6, 2.7, 3.1, 3.2, and 3.3. The recommended way to install is via pip
$ pip install praw
Alternatively you can do it via easy_install
$ easy_install praw
Support
The official place to ask questions about PRAW, reddit and other API wrappers is r/redditdev. If the question is more about Python and less about PRAW, such as “what are generators”, then you’re likely to get more, faster and more in-depth answers in r/learnpython.
If you’ve uncovered a bug or have a feature request, then make an issue on our project page at github.
Documentation
PRAW’s documentation, which includes tutorials, information on configuring PRAW and other good stuff can be found at readthedocs.
License
All of the code contained here is licensed by the GNU GPLv3.
Metadata
Release files for praw 2.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| praw-2.1.3.tar.gz | 74.5 kB | Without provenance | Details for praw-2.1.3.tar.gz |
Release files / praw-2.1.3.tar.gz
| Download URL | praw-2.1.3.tar.gz |
|---|---|
| Size | 74.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0244ae7c531191f55f5bea4b948f407b3b8ee488ce5f55f52f77348b33940a0
|
|
BLAKE2b-256 checksum How to use checksums |
dc0cab35f220e107896a07029e18ac07beee26551558613b1bb8dd5834da23fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for praw 2.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.