TenGiphPy
API Wrapper for the Gif library Tenor.
Install / Use
/learn @miditkl/TenGiphPyREADME
TenGiphPy is a Python wrapper for the Tenor and Giphy API.
Installation
Clone Repository: python3 setup.py install
Install with pip: python3 -m pip install TenGiphPy
Update with pip: python3 -m pip install -U TenGiphPy
Usage
GIF Endpoints
To use:
import TenGiphPy
t = TenGiphPy.Tenor(token='APITOKEN')
g = TenGiphPy.Giphy(token='APITOKEN')
#sync
print(t.random("GIFTAG"))
print(g.random(tag="GIFTAG")['data']['images']['downsized_large']['url'])
# Will return synchronously a random GIF with the tag "GIFTAG"
#async
import asyncio
print(asyncio.run(t.arandom('GIFTAG')))
print((asyncio.run(g.arandom(tag="GIFTAG"))['data']['images']['downsized_large']['url']))
# Will return asynchronously a random GIF with the tag "GIFTAG"
Get API Tokens
Examples
Click here, if you want a sample script for the discord.py library
Click here, if you want a sample script for the discord.py library in an asynchronous version
If you are on pypi and this readme is incorrect showed, click here to view the GitHub version!
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
