Crates.io | webtoon |
lib.rs | webtoon |
version | |
source | src |
created_at | 2024-10-22 08:33:28.355977 |
updated_at | 2024-12-11 13:17:44.497198 |
description | Client for interacting with various webtoon websites. |
homepage | |
repository | https://github.com/Webtoon-Studio/webtoon/ |
max_upload_size | |
id | 1418377 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Welcome to the webtoon
library, a Rust-based SDK that allows you to interact with a Webtoon platform programmatically.
This library provides a set of utilities and methods to handle various Webtoon-specific operations such as fetching episodes,
posting comments, subscribing, liking, and managing episode metadata.
To use this library, add webtoon
to your Cargo.toml
:
[dependencies]
webtoon = "0.3.0"
webtoons.com
use webtoon::platform::webtoons::{errors::Error, Client, Type};
#[tokio::main]
async fn main() -> Result<(), Error> {
// Initialize the client
let client = Client::new();
// Fetch a webtoon by ID and Type
let webtoon = client
.webtoon(95, Type::Original)
.await?
.expect("No webtoon with this id and type on webtoon.com");
// Fetch title and print to stdout
println!("{}", webtoon.title().await?);
Ok(())
}
For more examples, check out the examples
folder.
rss
: Enables the ability to get the RSS feed data for a webtoon.download
: Enables the ability to download an episodes panels.