Last active
May 20, 2022 14:24
-
-
Save Diapolo10/37cf9342b8d7e807e1275d05817b0912 to your computer and use it in GitHub Desktop.
LINE Sticker Downloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
"""Downloads sticker images from the LINE store""" | |
from pathlib import Path | |
import requests | |
DESTINATION = Path.home() / 'line_stickers' | |
IMAGE_ID_RANGE = range(345806894, 345806934) # Default: Kemomimi set 1 | |
if not DESTINATION.exists: | |
DESTINATION.mkdir() | |
for id_ in IMAGE_ID_RANGE: | |
(DESTINATION / f'image_{id_:09}.png').write_bytes( | |
requests.get( | |
f'https://stickershop.line-scdn.net/stickershop/v1/sticker/{id_}/android/sticker.png' | |
).content | |
) | |
print('DONE') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kemomimi set 2, for instance, would be 433005006-433005037.