RedditEasy is an API wrapper for the Reddit JSON API
Project description
RedditEasy
RedditEasy is an API wrapper for the Reddit JSON API
Install
To install RedditEasy, do:
pip install redditeasy
OR
python -m pip install redditeasy
Documentation
Docs can be found here
Usage
import redditeasy
post = redditeasy.Subreddit("memes")
postoutput = post.get_post()
print(f"Posts Title: {postoutput.title}\n"
f"Posts Content: {postoutput.content}\n"
f"Post Created At: {postoutput.created_at}\n"
f"Posts Upvote Count: {postoutput.score}\n"
f"Posts Award Count: {postoutput.total_awards}\n"
f"NSFW?: {postoutput.nsfw}")
More examples are in the examples folder
Errors
The module will raise IndexError
if the given user / subreddit is not found
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
redditeasy-0.1.5.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for redditeasy-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64cc97f8d992c82b21e0f698b2c7fac3445b6a880198082aad874dd6e0e5dd11 |
|
MD5 | dd0ca2e87a99062fa97e4f65e62c70f7 |
|
BLAKE2b-256 | b04bc87fb5e4183c97481c47b8a3105e1d23bc1eb8c393acfd3af35f09f5134b |