Installation
pip install reddit-api-client
Examples
Guest Endpoints
from reddit.scraper import Scraper
reddit = Scraper()
homepage = reddit.homepage()
popular = reddit.popular()
front_page = reddit.front_page()
subreddit = reddit.subreddit("pics")
search = reddit.search(
'api blackout',
includePosts=True,
includeCommunities=True,
includeAuthors=True,
includeComments=True,
# communitySearch=False,
# customFeedSearch=False,
# postsAfter=None,
# communitiesAfter=None,
# authorsAfter=None,
# commentsAfter=None,
filters={
'nsfw': '0', # {'1', '0'},
'time_range': 'null', # {'hour', 'day', 'week', 'month', 'year', 'null'},
'post_types': 'null', # {'gif', 'image', 'link', 'poll', 'text', 'video', 'null'},
'result_types': '', # {'subreddit', 'profile', ''}
},
sort='NEW', # {'RELEVANCE', 'HOT', 'TOP', 'NEW', 'COMMENTS'}
)
Auth Endpoints
from reddit.scraper import Scraper
username, password = ..., ...
reddit = Scraper(username, password)
# get data from posts
posts = reddit.posts({
'pics': ['147p5ql', '146zsax'],
'funny': '143wysp',
})
# comment on a post
reddit.comment('146zsax', 'test 123')
Metadata
Release files for reddit-api-client 0.0.0
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 | |
|---|---|---|---|---|
| reddit-api-client-0.0.0.tar.gz | 26.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| reddit_api_client-0.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.3 kB
Release files / reddit-api-client-0.0.0.tar.gz
| Download URL | reddit-api-client-0.0.0.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b027ac0b0b6369b704aeeb1f470d4db0cc68eb291f01dc6d853d9f2fc38bbcae
|
|
BLAKE2b-256 checksum How to use checksums |
4f473b27586ee73739b7a27247f54772cc759427dc5fac1481083ff0cda97068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / reddit_api_client-0.0.0-py3-none-any.whl
| Download URL | reddit_api_client-0.0.0-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87cb4a4d7685d33b0b2638084d34698856db760ef61398bb8398c80c00f3fa29
|
|
BLAKE2b-256 checksum How to use checksums |
94c1f665b33e068667d9d673553fe6d9b4897c9e16d0f4ac2549607760019cee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for reddit-api-client 0.0.0
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.