#xkcd #search #comics #metadata #retrieve #title #id

xkcd-search

Search for xkcd comics and retrieve metadata

3 releases

0.1.2 Jul 29, 2021
0.1.1 Apr 22, 2021
0.1.0 Apr 22, 2021

#573 in Compression

21 downloads per month

Apache-2.0

8KB
155 lines

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

Dependencies

~11–25MB
~400K SLoC