A python lib to get dank memes
Project description
MemeLib
A python lib to get dank memes
Installation
MemeLib is installed through PyPi
pip install MemeLib
Usage
from memelib.api import DankMemeClient
myclient = DankMemeClient()
await myclient.meme(subreddit="dankmemes")
That returns a dict.
{'title': 'Creeping in', 'author': 'u/charles2x2', 'subreddit': 'r/dankmemes', 'upvotes': 117, 'comments': 6, 'img_url': 'https://i.redd.it/c1onsrvplnu51.jpg', 'post_url': 'https://reddit.com/r/dankmemes/comments/jg0ax7/creeping_in/'}
Params for the DankMemeClient
call:
reddit_user_agent
: str | The reddit user agent. Preferrably, this would be the name of your application.
return_embed
: bool | Whether to return a Discord.py embed.
embed_color
| A color for the discord embed. Must be in 0xFFFFFF format.
If return_embed
is true, this will automatically return a nicely formatted embed.
Example:
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
MemeLib-0.0.11.tar.gz
(3.4 kB
view hashes)
Built Distribution
MemeLib-0.0.11-py3-none-any.whl
(16.0 kB
view hashes)