/TenGiphPy

API Wrapper for the Gif library Tenor. Join my server: https://discord.gg/uFdVUMH

Primary LanguagePythonMIT LicenseMIT

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')
print(t.random("GIFTAG"))
print(g.random(tag="GIFTAG")['data']['images']['downsized_large']['url'])
# Will return a random GIF with the tag "GIFTAG"

Get API Tokens

Tenor Developer Portal

Giphy Developer Portal

Examples

Click here, if you want a sample script for the discord.py library