Skip to main content

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.

Socials - KING7077 - GitHub

Example usage:

import reddit

client = reddit.Client()

subreddit = client.Subreddit('top', 'memes') # supports 'top', 'new' or 'hot'

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', 'memes') # supports 'top', 'new' or 'hot'

async def main():
    print(await subreddit.selftext(0))

asyncio.run(main())

The package is still under development

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-reddit-1.0.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

py_reddit-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file py-reddit-1.0.1.tar.gz.

File metadata

  • Download URL: py-reddit-1.0.1.tar.gz
  • Upload date:
  • Size: 4.1 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

Hashes for py-reddit-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1966fa6aaa33b8f428db27f0d9c50b85ea692596b5381bc472a72cdedd74c9bc
MD5 14e2d5fa7cb1e3152aa7f65e2e453405
BLAKE2b-256 412293a7b735c5b55e60c2b1616c0e5e396c9831ff23bfc5e3a6fde55cfe5d1e

See more details on using hashes here.

File details

Details for the file py_reddit-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: py_reddit-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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

Hashes for py_reddit-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd01f7ee6d76df8e985d81c07320938e2d5d4cc9520646e2c92288104cb5d86e
MD5 ea2f07671b87ac2b68442a63e74bc587
BLAKE2b-256 c5bc600257fb3fd96cebc6f786f2f6fffe23d5ac8ff408e1c7121f170eaca295

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page