Reddit and python, made simple.
Project description
py-reddit
A package that can be used to get reddit submissions, and their various attributes. The package supports both synchronous and asynchronous development. I am more familiar with synchronous programming, but have tried my best at making a good asynchronous implementation. The package is written in Python 3.10, and uses requests and aiohttp as its main dependencies.
Updates will be coming soon, thank you for viewing this package, please consider using it.
Version - 1.1.1
Socials - KING7077 - GitHub
Installation methods:
pip3 install py-reddit
py -3 -m pip install py-reddit
python3 -m pip install py-reddit
Example usage:
import reddit
client = reddit.Client('agent', 'key')
subreddit = client.Subreddit('top', 'subreddit-here') # supports 'top', 'new' or 'hot' type of submissions
print(subreddit.selftext(0)) #gets the selftext of the first post here
Asynchronus client:
import reddit
import asyncio
client = reddit.AsyncClient()
subreddit = client.Subreddit('top', 'subreddit-here') # supports 'top', 'new' or 'hot' type of submissions
async def main():
print(await subreddit.selftext(0))
asyncio.run(main())
The package is still under active development
CHANGELOG
February 19, 2022
Minor changes to the description of the project - 1.1.1
February 19, 2022
The project actually works now - 1.1.0
February 18, 2022
Minor changes to make the project more usuable - 1.0.6
February 18, 2022
Minor changes to make the project more usuable - 1.0.5
February 18, 2022
Minor changes to make the project more usuable - 1.0.4
February 18, 2022
Minor changes to make the project more usuable - 1.0.3
February 18, 2022
Minor changes to the description of the project - 1.0.2
February 18, 2022
Initial release - 1.0.1
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
Built Distribution
File details
Details for the file py-reddit-1.1.1.tar.gz
.
File metadata
- Download URL: py-reddit-1.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.47.0 importlib-metadata/4.11.1 keyring/21.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d36423a94e325fb8bd484f6d5c7b3838effa0cc0c3ef815e37b8da518ef644b3 |
|
MD5 | 14b9a87e81c790888c15fe3fa4915aed |
|
BLAKE2b-256 | 3b11aa828567e70773292502adfe0addb51a69d8c8b00f954ae5156e3961e3b8 |
File details
Details for the file py_reddit-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: py_reddit-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.47.0 importlib-metadata/4.11.1 keyring/21.2.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da09d3b8552b6b99d50f6d5c63fed85df23661f27a1d76be13b5801ef96133cc |
|
MD5 | 2929e9119be1725c5b0e819aa6276fc4 |
|
BLAKE2b-256 | c7750e98b80bf9584e94234fcc59c23255d93cf78c0e9fac2a2aaafc8775c666 |