获取潮湿模因的python库
MemeLib的Python项目详细描述
梅内利布
一个python库来获取dank meme
安装
MemeLib是通过PyPi安装的
pip install MemeLib
用法
^{pr2}$它返回一个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/'}
DankMemeClient
调用的参数:
reddit_user_agent
:str | reddit用户代理。更可取的是,这将是您的应用程序的名称。在
return_embed
:bool |是否返回不和.py嵌入。在
embed_color
不和谐嵌入的颜色。必须为0xFFFFFF格式。在
如果return_embed
为真,则将自动返回格式良好的嵌入。在
示例:
- 项目
标签: