Giter Site home page Giter Site logo

curegit / line-theme-downloader Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 23 KB

Small scripts to download theme files from LINE Store

License: Do What The F*ck You Want To Public License

PowerShell 52.64% Shell 47.36%
cli bash-script powershell-script line downloader

line-theme-downloader's Introduction

Line Theme Downloader

Small scripts to download theme files from LINE Store

Requirements

Bash version

  • Bash >= 3.0
  • cURL
  • /dev/null device

PowerShell version

  • PowerShell >= 3.0
  • PowerShell >= 6.0 (required only if executing the script directly in UNIX)

Usage

./download.(sh|ps1) PACKAGEID [VERSION]

These scripts download theme files in a zip format using HTTP GET. The zip files are saved in the current directory.

The PACKAGEID parameter is always required and specifies which theme to download. The ID format looks like this: c6c01199-8d9c-4a7b-860f-8718e40d6bfc. You can find them in the URL of theme content pages.

The VERSION parameter is optional. It specifies which version(s) to download. It must be -1, 0, or a positive integer. See the following table for synopses of the parameter values.

VERSION behavior
-1 Download all the versions.
0 Download the latest version. (Default)
n Download the specified version.

The latest version numbers are being displayed inconspicuously in theme content pages. Versioning starts with v1.00 and increases by 0.01. To convert them to script parameter format, remove the integer portion and decimal point, and subtract 99. Note that the displayed version would be 1 less than the version used in script (v1.00 is mapped to 1). For example, to download v1.41, you must pass 42. For another example, v1.99 is 100, and v2.00 is 101.

Notes

  • The requirement of PowerShell 6.0 or newer to run the script directly in UNIX shells is due to the shebang problem.
  • The theme files are located in public web directories, so anyone can get them easily and legally (for private use only).

Related

Line Sticker Downloader

License

WTFPL

line-theme-downloader's People

Contributors

curegit avatar

Stargazers

 avatar

Watchers

 avatar

line-theme-downloader's Issues

Unable to find theme package

I'm trying to get these (1 + 2) themes, but the script keeps returning No such theme package (possibly network error) (there's no network error).

I'm using bash with this example code: ./download.sh f92efd5f-08c8-47cd-bbaa-df40f282315a. Adding a version integer didn't work either.

I did end up finding the URL for the themes, though.

  • http://dl.shop.line.naver.jp/themeshop/v1/products/4c/f9/dc/4cf9dc33-643e-4ff8-9254-044655f5ca2a/38/IOS/theme.zip
  • http://dl.shop.line.naver.jp/themeshop/v1/products/91/97/b0/9197b06d-735d-4804-982c-4c35130d6080/38/IOS/theme.zip

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.