consumet

Crates.ioconsumet
lib.rsconsumet
version0.0.13
sourcesrc
created_at2024-01-06 11:55:31.875411
updated_at2024-05-26 20:11:27.403858
descriptionConsumet API RIIR
homepage
repositoryhttps://github.com/eatmynerds/consumet.rs
max_upload_size
id1090869
size242,627
Jason Spalti (eatmynerds)

documentation

README

consumet.rs

consumet.rs is a crates.io library which provides high-level APIs to get information about several entertainment mediums like books, movies, comics, anime, manga, etc.

Clippy Test GitHub Official Discord

Table of Contents

Quick Start

Installation

To use consumet.rs in your project, run:

cargo install consumet

Usage

Example - searching for a movie using the flixhq provider.

use consumet::providers::movies;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    // Create a new instance of the FlixHQ provider
    let flixhq = movies::FlixHQ;

    // Search for a movie. In this case, "Vincenzo"
    let data = flixhq.search("Vincenzo", None).await?;
    println!("{:#?}", data);

    Ok(())
}

Cargo.toml

[package]
name = "<your_package_name>"
version = "0.0.1"
edition = "2021"

[dependencies]
consumet = "0.0.11"
tokio = { version = "1.0", features = ["full"] }
anyhow = "1.0.79"

Do you want to know more? Head to the Getting Started.

Documentation

Ecosystem

Support

You can contact the maintainer of consumet.rs via email, or join the official discord server (Recommended).

Contributors

Checkout the original consumet.ts

Credits to the beautiful people who wrote the original consumet.ts:

License

Licensed under GPL-3.0.

Commit count: 193

cargo fmt