Giter Site home page Giter Site logo

hma's Introduction

HI3-Manhua-Archiver

HMA is a C program to download manhuas from the official HI3 COMIC, chinese site (https://comic.bh3.com/) and international site (https://manga.honkaiimpact3.com/).

How to get it

Just go there or build it yourself.

Build

To build you'll git xmake and curl development package.
Then run these commands:
    git clone https://github.com/JeSuisSurGithub/HMA
    cd HMA
    xmake f -m release --toolchain=gcc"
    xmake -w -j $(nproc)
    sudo xmake install (optional)
    sudo xmake uninstall (to uninstall)

Usage

Usage : hma-cli [OPTIONS]
    NO ARGS Launches guided mode
    -h, --help Prints out this help
    -s, --server[int] 1 = MAINLAND CHINA, 2 = GLOBAL
    -b, --book[int] The 4-digit integer on the HI3 COMIC Official site when you read a specific book i.e: http://....com/book/[BookID]
    -f, --first[int] First chapter to download, optional
    -l, --last[int] Last chapter to download, optional
    -n, --quiet No output messages, optional
    -o, --onedirectory All pages in one directory, optional

Explanation

The url of a page uses the following format:
[CDN_BASE_URL]/comic/book/[BOOK_ID]/[CHAPTER]/[PAGE].jpg
Where:

  • CDN_BASE_URL is the CDN's base url(duh), it can be either
    https://act-webstatic.hoyoverse.com/manga/static (global)
    or
    https://act-webstatic.mihoyo.com/new_static_v2 (china)
  • BOOK_ID is an 4 digit integer starting from 1001(and growing up)
  • CHAPTER is a non zero padded integer starting at 1
  • PAGE is zero padded 4 digit integer starting at 0001

Each page downloaded is saved using one of the following path format depending on options passed in the command line:
hmaoutput/[SERVER_NAME]/[BOOK_ID]/[CHAPTER]/[CHAPTER+PAGE].jpg
or
hmaoutput/[SERVER_NAME]_[BOOK_ID]_[CHAPTER+PAGE].jpg

hma's People

Contributors

jesuissurgithub avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.