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.6.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for redditeasy-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 266d3300c0742c660fa4e5ecf345d19c87c882be6c1478030801b3a70f9b4bb5 |
|
MD5 | 452200d8a28c229bf585e3e60112a785 |
|
BLAKE2b-256 | a4849621fa8367a2ccdb89cd51b0b7dac2dbd49b51ae446b31e799342eaed1d9 |