A very simple HTML scraper for https://www.metacritic.com/ made in Rust. Unfortunately metacritic has no API, so this is the only way to make a CLI app to search scores of games, movies etc.
You can provide title as an argument and get score and basic info about platform and release date or you can provide "coming-soon" to get upcoming releases. The options should work the same way in both use cases.
I'm a gamer so the default type is game, but there is a "-t" option to change that.
You can install it from crates.io:
bash
cargo install metacritic-cli
For testing purposes:
bash
git clone https://github.com/Nithe14/metacritic-cli.git
cd metacritic-cli
cargo run -- -h
```bash $ metacritic-cli -h
Usage: metacritic-cli [OPTIONS]
Arguments:
metacritic-cli "witcher 3"
metacritic-cli coming-soon -p ps5
Options:
-s, --single
Print only the first object from the result page.
Works as -n 1.
-j, --json
Print output as json
-n, --number-of-results