Crates.io | howlongtobeat |
lib.rs | howlongtobeat |
version | 0.5.2 |
source | src |
created_at | 2022-08-22 15:13:17.265195 |
updated_at | 2022-12-04 20:29:36.420627 |
description | Simple api for https://howlongtobeat.com |
homepage | https://github.com/saturnavt/howlongtobeat-api |
repository | https://github.com/saturnavt/howlongtobeat-api |
max_upload_size | |
id | 650431 |
size | 49,221 |
How long to beat provides information and data about games and how long it will take to finish them.
This library is a simple wrapper api to fetch data from How long to beat (search and detail). It is an awesome website and a great service, also heavily living from community data. Please check the website and support if you like what they are doing.
howlongtobeat = "0.5.2"
use howlongtobeat::search;
let games_found = search("Elden Ring".to_string());
println!("{:#?}", games_found);
[
Game {
image: "https://howlongtobeat.com/games/68151_Elden_Ring.jpg",
title: "Elden Ring",
main: "52h 39m",
extra: "98h 11m",
completionist: "131h 19m",
},
Game {
image: "https://howlongtobeat.com/games/108888_Elden_Ring_GB.jpg",
title: "Elden Ring GB",
main: "0h 21m",
extra: "0h 29m",
completionist: "0h 0m",
},
]
DO WHAT THE FUCK YOU WANT