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.
mygifs.json file by following this reddit guideOr 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.



dislink2.py mygifs.json
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.