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}\n"
f"Post Flair: {postoutput.post_flair}\n"
f"User Flair: {postoutput.author_flair}")
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.5.0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for redditeasy-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7401f02d3805a2050d24855dda7374dc8ed7e3ac3d17625e8162a9fb3408090d |
|
MD5 | 8a1f982316186a7a9e7a713a4bcfe35b |
|
BLAKE2b-256 | 12a40b01f6f09a705c9a4bc3a8ccc4f7b5813b581dbe8f574b3cbbfe528b00c5 |