Metacritic CLI

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.

Prerequisities

Dependencies

Quick start

For testing purposes: bash git clone https://github.com/Nithe14/metacritic-cli.git cd metacritic-cli cargo run -- -h Install it as a binary:

```bash git clone https://github.com/Nithe14/metacritic-cli.git cd metacritic-cli cargo install --path .

Add cargo path to your path (in .bashrc etc)

export PATH=~/.cargo/bin:$PATH metacritic-cli -h ``` How to use:

```bash $ metacritic-cli -h

Usage: metacritic-cli [OPTIONS]

Arguments: Word to search. You can provide "coming-soon" to get upcoming game releases. Examples: 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 Print only n first objects from the result page (n = 1-10) [default: 3] -t, --type Specify object type. Available types: movie, game, album, tv, person, video, company, story, all [default: game] -p, --platform Specify platform (only for game type for now). Available options (ps5 and xbox-series-x is only available for "coming-soon" for now - it is because of metacritic not me, sorry): ps, ps2, ps3, ps4, ps5, xbox, xbox360, xboxone, xbox-series-x, switch, pc, ds, 3ds, ps-vita, psp, wii, wii-u, gameboy-advance, iphone, all [default: all] -h, --help Print help -V, --version Print version ```