How to save your tenor gifs


Tenor is going away soon, so some of you may want to save all the gifs you have accumulated over the years. This way is not perfect, but it should get most of them. It also keeps track of links that do not work, and tells you which ones are broken.

This project was written with Python 3.10.7 but it should probably work on most python 3 versions. I haven't checked.

Feel free to modify the code to your liking.

  1. Download your BS4 compressed list as a json called mygifs.json file by following this reddit guide

    Or you can follow this more exact guide for Firefox:

    Open a random DM and star a random gif, then use Control + Shift + I to open the uhh dev window. Then shift over to the network tab. In the network tab, you should see a listing called "2". Click it.

    Go to the request tab. you'll see a thing called "settings" with a very long and bs4 encrypted value.

    Right click on it, and select "Copy All"

    Paste it into a text editor, and save it as mygifs.json

  2. Download this python script
  3. Run it by using this command:
    dislink2.py mygifs.json
  4. Enjoy your gifs saved in the folder called "gifsave"

Some of them will be mp4s. Some of them will be webms. Some will probably be repeats. This just scours the file for links and downloads everything it can.

Inside the "gifsave" folder, you will also find a json called "notfound". Will contain all the links it found in the list but it could not download. This way, if you have them saved elsewhere, you can search by filename.