|
12 | 12 |
|
13 | 13 | <img src="readme-assets/icons/name.png" alt="Project Icon" width="750"> |
14 | 14 |
|
15 | | -Download sticker packs from Signal |
| 15 | +The `sigstickers` package provides functionality for downloading and converting sticker packs from https://signal.art/addstickers (find packs at https://www.sigstick.com/). Download stickers in WebP format, and convert them to PNG and GIF formats, with caching the converted stickers for faster retrieval. |
16 | 16 |
|
| 17 | +- [Key Features](#key-features) |
17 | 18 | - [Using](#using) |
18 | | - - [Help](#help) |
19 | 19 | - [Formats](#formats) |
20 | 20 | - [Documentation](#documentation) |
21 | 21 | - [Install With PIP](#install-with-pip) |
@@ -49,23 +49,80 @@ Download sticker packs from Signal |
49 | 49 | - [Support](#support) |
50 | 50 | - [Rationale](#rationale) |
51 | 51 |
|
| 52 | +## Key Features |
| 53 | + |
| 54 | +1. **Sticker Pack Downloading** from Signal from their https://signal.art/addstickers url |
| 55 | +2. **Sticker Pack Conversion** from the WebP format to PNG and GIF formats, making them compatible with various platforms and applications. |
| 56 | +3. **Caching Functionality** to store converted sticker images locally, reducing the need to re-convert them |
| 57 | +4. **Asynchronous Processing** for downloading and converting sticker packs |
| 58 | + |
52 | 59 | ## Using |
53 | 60 |
|
54 | | -- Get the URL of the Signal sticker pack |
55 | | -- Run the program `python -m sigstickers` |
56 | | -- Enter the URL of the sticker pack |
57 | | -- Get the output in the `downloads` folder. |
| 61 | +1. Get the URL of the Signal sticker pack. In the form https://signal.art/addstickers (find packs at https://www.sigstick.com/) |
58 | 62 |
|
59 | | -### Help |
| 63 | +2. Pass in multiple packs from the commandline with `-p/--pack` |
60 | 64 |
|
61 | | -```sh |
62 | | -usage: Welcome to SigSticker, providing all of your sticker needs [-h] [-p PACK [PACK ...]] |
| 65 | + ```bash |
| 66 | + $ python -m sigstickers --help |
| 67 | + usage: Welcome to SigSticker, providing all of your sticker needs [-h] [-p PACK [PACK ...]] |
| 68 | + |
| 69 | + options: |
| 70 | + -h, --help show this help message and exit |
| 71 | + -p PACK [PACK ...], --pack PACK [PACK ...] |
| 72 | + Pass in a pack URL inline |
| 73 | + |
| 74 | + $ python -m sigstickers --pack 'https://signal.art/addstickers/#pack_id=b676ec334ee2f771cadff5d095971e8c&pack_key=c957a57000626a2dc3cb69bf0e79c91c6b196b74d4d6ca1cbb830d3ad0ad4e36' |
| 75 | + |
| 76 | + 2024-03-17 00:14:16.354 | INFO | sigstickers.downloader:download_pack:82 - ============================================================ |
| 77 | + 2024-03-17 00:14:16.805 | INFO | sigstickers.downloader:download_pack:88 - Starting to scrape "DonutTheDog" ... |
| 78 | + 2024-03-17 00:14:16.812 | INFO | sigstickers.downloader:download_pack:89 - Time taken to scrape 28 stickers - 0.999s |
| 79 | + 2024-03-17 00:14:16.813 | INFO | sigstickers.downloader:download_pack:90 - |
| 80 | + 2024-03-17 00:14:16.816 | INFO | sigstickers.downloader:download_pack:96 - ------------------------------------------------------------ |
| 81 | + 2024-03-17 00:14:16.820 | INFO | sigstickers.downloader:download_pack:97 - Starting download of "DonutTheDog" into ...\downloads\DonutTheDog |
| 82 | + 2024-03-17 00:14:16.894 | INFO | sigstickers.downloader:convert_pack:151 - ------------------------------------------------------------ |
| 83 | + 2024-03-17 00:14:16.897 | INFO | sigstickers.caching:verify_converted:35 - -> Cache miss for DonutTheDog! |
| 84 | + 2024-03-17 00:14:16.905 | INFO | sigstickers.downloader:convert_pack:163 - Converting stickers "DonutTheDog"... |
| 85 | + 2024-03-17 00:14:29.655 | INFO | sigstickers.downloader:convert_pack:171 - Time taken to convert 28/28 stickers - 12.749s |
| 86 | + 2024-03-17 00:14:29.656 | INFO | sigstickers.downloader:convert_pack:175 - |
| 87 | + ``` |
63 | 88 |
|
64 | | -optional arguments: |
65 | | - -h, --help show this help message and exit |
66 | | - -p PACK [PACK ...], --pack PACK [PACK ...] |
67 | | - Pass in a pack url inline |
68 | | -``` |
| 89 | +3. OR. Enter the URL of the sticker pack |
| 90 | + |
| 91 | + ```bash |
| 92 | + $ python -m sigstickers |
| 93 | + Enter sticker_set URL (leave blank to stop): https://signal.art/addstickers/#pack_id=b676ec334ee2f771cadff5d095971e8c&pack_key=c957a57000626a2dc3cb69bf0e79c91c6b196b74d4d6ca1cbb830d3ad0ad4e36 |
| 94 | + Enter sticker_set URL (leave blank to stop): |
| 95 | + 2024-03-17 00:18:25.528 | INFO | sigstickers.downloader:download_pack:82 - ============================================================ |
| 96 | + 2024-03-17 00:18:26.415 | INFO | sigstickers.downloader:download_pack:88 - Starting to scrape "DonutTheDog" ... |
| 97 | + 2024-03-17 00:18:26.417 | INFO | sigstickers.downloader:download_pack:89 - Time taken to scrape 28 stickers - 0.885s |
| 98 | + 2024-03-17 00:18:26.420 | INFO | sigstickers.downloader:download_pack:90 - |
| 99 | + 2024-03-17 00:18:26.426 | INFO | sigstickers.downloader:download_pack:96 - ------------------------------------------------------------ |
| 100 | + 2024-03-17 00:18:26.428 | INFO | sigstickers.downloader:download_pack:97 - Starting download of "DonutTheDog" into ...\downloads\DonutTheDog |
| 101 | + 2024-03-17 00:18:26.497 | INFO | sigstickers.downloader:convert_pack:151 - ------------------------------------------------------------ |
| 102 | + 2024-03-17 00:18:26.524 | INFO | sigstickers.caching:verify_converted:33 - -> Cache hit for DonutTheDog! |
| 103 | + ``` |
| 104 | + |
| 105 | +4. Get the output in the `downloads` folder. |
| 106 | + |
| 107 | + ```powershell |
| 108 | + $ ls .\downloads\DonutTheDog\ |
| 109 | + |
| 110 | + Mode LastWriteTime Length Name |
| 111 | + ---- ------------- ------ ---- |
| 112 | + d----- 17/03/2024 00꞉14 gif |
| 113 | + d----- 17/03/2024 00꞉14 png |
| 114 | + d----- 17/03/2024 00꞉08 webp |
| 115 | + |
| 116 | + $ ls .\downloads\DonutTheDog\webp |
| 117 | + |
| 118 | + Mode LastWriteTime Length Name |
| 119 | + ---- ------------- ------ ---- |
| 120 | + -a---- 17/03/2024 00꞉18 285292 0+face_with_tears_of_joy+😂.webp |
| 121 | + -a---- 17/03/2024 00꞉18 271726 1+face_blowing_a_kiss+😘.webp |
| 122 | + -a---- 17/03/2024 00꞉18 306995 10+smiling_face_with_horns+😈.webp |
| 123 | + -a---- 17/03/2024 00꞉18 293578 11+partying_face+🥳.webp |
| 124 | + -a---- 17/03/2024 00꞉18 266627 12+angry_face+😠.webp |
| 125 | + ``` |
69 | 126 |
|
70 | 127 | ## Formats |
71 | 128 |
|
|
0 commit comments