xkcd-search

Crates.ioxkcd-search
lib.rsxkcd-search
version0.1.2
sourcesrc
created_at2021-04-22 14:05:20.970362
updated_at2021-07-29 19:16:15.74856
descriptionSearch for xkcd comics and retrieve metadata
homepage
repositoryhttps://github.com/Trivernis/xkcd-search-rs
max_upload_size
id388147
size18,884
Julius Riegel (Trivernis)

documentation

README

XKCD Search

This crate provides functions to search for xkcd comics by title.

Usage

use xkcd_search;

#[tokio::main]
async fn main() {
    let phone_entries = xkcd_search::search("Phone").await.unwrap();
    let mut comics = Vec::new();
    
    for (_title, id) in phone_entries {
        comics.push(xkcd_search::get_comic(id).await.unwrap())
    }
}

License

Apache-2.0

Commit count: 6

cargo fmt