Skip to content

Instantly share code, notes, and snippets.

@Diapolo10
Last active May 20, 2022 14:24
Show Gist options
  • Save Diapolo10/37cf9342b8d7e807e1275d05817b0912 to your computer and use it in GitHub Desktop.
Save Diapolo10/37cf9342b8d7e807e1275d05817b0912 to your computer and use it in GitHub Desktop.
LINE Sticker Downloader
#!/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')
@Diapolo10
Copy link
Author

Kemomimi set 2, for instance, would be 433005006-433005037.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment