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"Posts Author: u/{postoutput.author}\n"
f"Posts URL: {postoutput.post_url}\n"
f"Spoiler?: {postoutput.spoiler}\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 KeyError
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-1.0.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for redditeasy-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0064c364bb874574782f88c7c01df3156be37fe90496749df6de6fbf29b6596 |
|
MD5 | a0b35fcd429a2f2e56896d8a3bd00ce3 |
|
BLAKE2b-256 | 45e871117a394cf23847fb3682dcee9da326e33588b30375938b0491581f7cbf |