The tstickers
package provides functionality for downloading and converting sticker packs from https://t.me/addstickers. Download stickers, and convert them to multiple formats, with caching the converted stickers for faster retrieval.
https://t.me/addstickers/DonutTheDog
python -m tstickers
downloads
folder.More info at Tutorials
Get the URL of the Signal sticker pack. In the form https://t.me/addstickers
Pass in multiple packs from the commandline with -p/--pack
$ tstickers --pack https://t.me/addstickers/DonutTheDog
INFO | ============================================================
INFO | Starting to scrape "DonutTheDog" ..
INFO | Time taken to scrape 31 stickers - 0.044s
INFO |
INFO | ------------------------------------------------------------
INFO | Starting download of "donutthedog" into downloads\donutthedog
INFO | Time taken to download 31 stickers - 0.157s
INFO |
INFO | ------------------------------------------------------------
INFO | -> Cache miss for DonutTheDog!
INFO | Converting stickers "DonutTheDog"...
INFO | Time taken to convert 31 stickers (tgs) - 60.970s
INFO |
INFO | Time taken to convert 31 stickers (webp) - 0.447s
INFO |
INFO | Time taken to convert 62 stickers (total) - 61.434s
INFO |
OR. Enter the URL of the sticker pack when prompted
$ python -m tstickers
Enter sticker_set URL (leave blank to stop): https://t.me/addstickers/DonutTheDog
Enter sticker_set URL (leave blank to stop):
INFO | ============================================================
INFO | Starting to scrape "DonutTheDog" ..
INFO | Time taken to scrape 31 stickers - 0.044s
INFO |
INFO | ------------------------------------------------------------
INFO | Starting download of "donutthedog" into downloads\donutthedog
INFO | Time taken to download 31 stickers - 0.157s
INFO |
INFO | ------------------------------------------------------------
...
Get the output in the downloads
folder.
$ ls .\downloads\donutthedog\
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 17/03/2024 17꞉00 apng
d----- 17/03/2024 17꞉01 gif
d----- 17/03/2024 17꞉06 png
d----- 17/03/2024 17꞉00 tgs
d----- 17/03/2024 17꞉02 webp
$ python -m tstickers --help
usage: Welcome to TStickers, providing all of your sticker needs [-h] [-t TOKEN] [-p PACK [PACK ...]]
[--frameskip FRAMESKIP] [--scale SCALE]
[-b {rlottie-python,pyrlottie}]
options:
-h, --help show this help message and exit
-t TOKEN, --token TOKEN
Pass in a bot token inline
-p PACK [PACK ...], --pack PACK [PACK ...]
Pass in a pack url inline
--frameskip FRAMESKIP
Set frameskip. default=1
--scale SCALE Set scale. default=1.0
-b {rlottie-python,pyrlottie}, --backend {rlottie-python,pyrlottie}
Specify the convert backend
A high-level overview of how the documentation is organized organized will help you know where to look for certain things: