An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          







Tenor Downloader



Download .gif files from Tenor.



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
```