| Crates.io | tosho-musq |
| lib.rs | tosho-musq |
| version | 0.7.0 |
| created_at | 2024-02-14 10:50:55.956876+00 |
| updated_at | 2025-05-31 01:18:18.358631+00 |
| description | An asynchronous client of MU! API by SQ. |
| homepage | https://github.com/noaione/tosho-mango |
| repository | https://github.com/noaione/tosho-mango |
| max_upload_size | |
| id | 1139732 |
| size | 144,243 |
An asynchronous client for the MU! API by SQ.
The following crate is used by the tosho app.
Download the tosho app, or you can utilize this crate like any other Rust crate:
use tosho_musq::MUClient;
use tosho_musq::constants::get_constants;
#[tokio::main]
async fn main() {
let client = MUClient::new("1234", get_constants(1)).unwrap();
let manga = client.get_manga(240).await.unwrap();
println!("{:?}", manga);
}
Available get_constants value are:
1: Android2: iOS3: WebThe following sources do not have any easy authentication method.
The command to authenticate is tosho mu auth.
See below on how to obtain the secret token. For mobile version, it's recommended that you set up network intercepting first; please read INTERCEPTING.
Using the CLI, you can do this:
$ tosho mu auth [secret] -t android
Or, with Apple constants:
$ tosho mu auth [secret] -t ios
Or, with Web constants:
$ tosho mu auth [secret] -t web
With crates, you can follow the above usages.
/api/my_page which has the secret param, copy it.tosho.secret as the query parameters.tosho.Sniff Now.Home or My Page.Sniff History, then select the most recent item.secret=xxxxx in them.tosho.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.
This project is licensed with MIT License (LICENSE or http://opensource.org/licenses/MIT)