#lyrics #song #genius #url #fetches #tokio #com

genius_lyrics

Fetches lyrics of song from genius by it's URL

5 stable releases

1.0.4 Aug 23, 2023
1.0.3 Apr 13, 2022
1.0.2 Dec 13, 2021
1.0.1 Dec 12, 2021

#5 in #genius

Custom license

15KB
61 lines

Genius Lyrics Fetcher

crates.io Rust

Fetches lyrics of song from genius by it's URL

Example

extern crate tokio;
use genius_lyrics::get_lyrics_from_url;

#[tokio::main]
async fn main() {
    println!(
        "{}",
        get_lyrics_from_url("https://genius.com/Michael-jackson-bad-lyrics")
            .await
            .unwrap()
    )
}

Dependencies

~12–25MB
~374K SLoC