Allows a way to download .gif files from Tenor, which is presumably intentionally difficult or impossible to do via a web browser.
Update: It seems at some point since writing this script that Tenor now allows you to easily download gifs in the browser, albeit without unique filenames (all open as
tenor.gif
).
requests
clint
A developer API key is required. This is to be provided in config.ini
(see config.ini.example
) or as an optional argument.
tenor-dl.py [-h] [-a APIKEY] [-d] id
id the ID of the gif
The id for the gif can be found at the end of the URL on the landing page or view page for the gif. For example the id for this gif is 6198981
:
https://tenor.com/view/kitty-highkitten-mdmacat-cat-happykitty-gif-6198981
https://media1.tenor.com/images/f6fe8d1d0463f4e51b6367bbecf56a3e/tenor.gif?itemid=6198981
-h, --help show this help message and exit
-a APIKEY, --apikey APIKEY the Tenor api key
-d, --download download the gif