3 unstable releases

0.2.0 Aug 13, 2024
0.1.1 Jun 8, 2024
0.1.0 May 20, 2024

#1426 in Web programming

Download history 128/week @ 2024-08-13 1/week @ 2024-08-20 3/week @ 2024-08-27 8/week @ 2024-09-10 7/week @ 2024-09-17 18/week @ 2024-09-24 11/week @ 2024-10-01

258 downloads per month
Used in tosho

MIT license

120KB
2K SLoC

tosho-mplus

crates.io version

An asynchronous client for the M+ API by S.

The following crate is used by the tosho app.

Usage

Download the tosho app, or you can utilize this crate like any other Rust crate:

use tosho_mplus::MPClient;
use tosho_mplus::proto::Language;
use tosho_mplus::constants::get_constants;

#[tokio::main]
async fn main() {
    let client = MPClient::new("1234", Language::English, get_constants(1));
    let home_view = client.get_home_page().await.unwrap();
}

Authentication

The following sources do not have any easy authentication method.

The command to authenticate is tosho mp auth.

It's recommended that you set up network intercepting first; please read INTERCEPTING.

Using the CLI, you can do this:

$ tosho mp auth secret

With crates, you can follow the above usages.

Android

  1. Open the source app.
  2. Click on the home page or my page.
  3. Observe the requests on HTTP Toolkit and find the request to the API that has secret as the query parameters.
  4. Save that secret elsewhere and authenticate with tosho.

Disclaimer

This project is designed as an experiment and to create a local copy for personal use. These tools will not circumvent any paywall, and you will need to purchase and own each chapter with your own account to be able to make your own local copy.

We're not responsible if your account got deactivated.

License

This project is licensed with MIT License (LICENSE or http://opensource.org/licenses/MIT)

Dependencies

~7–20MB
~247K SLoC