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.async_meme(subreddit="dankmemes")
That returns a dict. (note: there is also a synchronous function: DankMemeClient.meme())
{'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.1.5.tar.gz
(16.1 kB
view details)
Built Distribution
MemeLib-0.1.5-py3-none-any.whl
(16.5 kB
view details)
File details
Details for the file MemeLib-0.1.5.tar.gz
.
File metadata
- Download URL: MemeLib-0.1.5.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25e873e71751c9dec66356c1687c5f87bcaf964e479819a1a1465926748777e6 |
|
MD5 | 731fb4a2142ccd686d2ff9c3af678cb1 |
|
BLAKE2b-256 | 92acb32199fb619a5111b41af996ca7ead17927cedade4f5fb009c72b087e4e9 |
File details
Details for the file MemeLib-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: MemeLib-0.1.5-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b447f3d8fa77f78a2d37b9bf1293ea2a5b56479591bccb0b861be14fcca0c72a |
|
MD5 | 5787b241be5d27d060722d66aeed07bd |
|
BLAKE2b-256 | 02901e67dfff5e31aa65096dfb29f88cbfcfe8de700f116bafa941b563dd185a |