Giter Club home page Giter Club logo

line-sticker-downloader's Introduction

Line Sticker Downloader

Simple tool for downloading sticker images and assets in a zip from LINE Store

It works in both browser-based and command-line environments.

Features

  • Compatible with sound and animation stickers
  • Can be used in Mod-PHP, CGI (browser), and CLI (terminal) environments

Requirements

  • PHP >= 7.0
  • PHP Zip extension

Debian example (CLI usage only)

sudo apt install php-cli php-zip

Installation

CGI and CLI

  1. Clone the repository, or download zip and extract it
  2. Deploy the entire directory to a web server (personal private server recommended)
  3. Give PHP permission to write in caches directory (0777 is fine)

CLI only

  1. Clone the repository, or download zip and extract it

Usage

CGI

  1. Visit index.html
  2. Enter the sticker ID
  3. Click the download button
  4. Wait for a minute
  5. Click the download link

CLI

  • To download stickers with ID 1234, run:

    php download.php 1234

  • To download stickers with ID 1111111 and save them as one.zip in the working directory, run:

    php download.php 1111111 one.zip

  • To download stickers with ID 5678 and save them as abc.zip in the foo directory, run:

    php download.php 5678 foo/abc.zip

Existing files will be overwritten.

Tips

How to find IDs

See the URL of sticker item pages.

Store

IDs are consecutive

  • Official stickers are numbered starting from 1
  • Creator's stickers are numbered starting from 1000000

Download multiple sticker packages

You can use the CLI with a loop command to download multiple sticker packages.

  • Bash
for ((i=1000; i<=1050; i++)); do php download.php $i; done
  • PowerShell
for ($i = 1000; $i -lt 1050; $i++) { php download.php $i }

Multiprocessing downloading

You can use xargs to download multiple sticker packages in parallel.

seq 1000 2000 | xargs -L 1 -P 8 php download.php

If you are using PowerShell 7.0 or newer, ForEach-Object -Parallel is a suitable alternative.

2000..3000 | ForEach-Object -ThrottleLimit 8 -Parallel { php download.php $_ }

Notes

  • The size of a download page (CGI) may be slightly large because the PHP program outputs a lot of dummy data so that a server sends document data continuously and a browser refreshes the screen.
  • The sticker resources are located in public web directories, so anyone can access them easily and legally (for private use only).
  • A few packages contain broken PNGs in iPhone stickers, missing important metadata. These stickers can't open with most applications, but there is a solution. Open them with macOS's Preview application and export as new images. The exported images may be valid forms.

Related

Line Theme Downloader

License

WTFPL

line-sticker-downloader's People

Contributors

curegit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

line-sticker-downloader's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.