https://github.com/losuler/tenor-dl
Download .gif files from Tenor.
https://github.com/losuler/tenor-dl
Last synced: 8 months ago
JSON representation
Download .gif files from Tenor.
- Host: GitHub
- URL: https://github.com/losuler/tenor-dl
- Owner: losuler
- License: gpl-3.0
- Created: 2019-12-05T08:34:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:55:21.000Z (over 3 years ago)
- Last Synced: 2025-02-08T22:07:07.176Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Allows a way to download .gif files from [Tenor](https://tenor.com/), 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`).
## Dependancies
```
requests
clint
```
## Configuration
A [developer API key](https://tenor.com/gifapi/documentation#quickstart-setup) is **required**. This is to be provided in `config.ini` (see `config.ini.example`) or as an optional argument.
## Usage
```
tenor-dl.py [-h] [-a APIKEY] [-d] id
```
### Positional arguments
```
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`
### Optional arguments
```
-h, --help show this help message and exit
-a APIKEY, --apikey APIKEY the Tenor api key
-d, --download download the gif
```