tosho-sjv

Crates.iotosho-sjv
lib.rstosho-sjv
version0.7.0
created_at2024-02-14 10:53:59.551272+00
updated_at2025-05-31 01:22:55.416943+00
descriptionAn asynchronous client of SJ/M by V
homepagehttps://github.com/noaione/tosho-mango
repositoryhttps://github.com/noaione/tosho-mango
max_upload_size
id1139735
size114,943
Publish (github:tosho-dev:publish)

documentation

README

tosho-sjv

crates.io version

A minimal asynchronous client for the SJ API by V.

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_sjv::{SJClient, SJConfig, SJMode, SJPlatform};

#[tokio::main]
async fn main() {
    let config = SJConfig::new(123, "xyz987abc", "abcxyz", SJPlatform::Android);
    let client = SJClient::new(config, SJMode::VM).unwrap();
    let manga = client.get_manga(vec![777]).await.unwrap();
    println!("{:?}", manga);
}

Authentication

The following sources only have one method of authentication, and that method uses your email and password.

$ tosho sj auth email password --help

Or, if you use the crates:

use tosho_sjv::{SJClient, SJConfig, SJMode, SJPlatform};

#[tokio::main]
async fn main() {
    let (account, instance_id) = SJClient::login("test@mail.com", "mypassword", SJMode::SJ, SJPlatform::Android).await.unwrap();

    let config = SJConfig::from_login_response(&account, instance_id, SJPlatform::Android);

    // Do stuff
    let client = SJClient::new(config, SJMode::SJ).unwrap();
}

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)

Commit count: 434

cargo fmt