You can sign up to get a daily email of our articles, see the Mailing List page!
Dirty script for EGS: sort your library by metacritic score
kokoko3k 27 Jul
Me, probably like many of you have collected a lot of free games from epic.
I made a quick and dirty bash script that fetches scores from metacritic for them.
It needs you to have configured legendary to get the game list.
It DOES NOT WORK for every game and some game reviews are fetched from consoles, but most of them are fine, here it is:
urlencode() {
    # urlencode <string>

    old_lc_collate=$LC_COLLATE
    LC_COLLATE=C

    local length="${#1}"
    for (( i = 0; i < length; i++ )); do
        local c="${1:$i:1}"
        case $c in
            [a-zA-Z0-9.~_-]) printf '%s' "$c" ;;
            *) printf '%%%02X' "'$c" ;;
        esac
    done

    LC_COLLATE=$old_lc_collate
}


URL_PRE="https://www.metacritic.com/search/game"
URL_POST="results?plats\[3\]=1&search_type=advanced"
URL_POST="results?&search_type=advanced"
legendary list-games|grep \*|cut -d "*" -f 2|cut -d "(" -f 1 |awk '{$1=$1;print}' >/tmp/games.txt

export IFS=$'\n'

for g in $(</tmp/games.txt) ; do 
   game=$(urlencode $g)
   URL="$URL_PRE/$game/$URL_POST"
   #echo $URL
   rating=$(curl -s $URL |grep -A 1000 "main_stats"|grep "metascore_w " |cut -d \> -f 2|cut -d \< -f 1|head -n 1)
   echo "$rating" - "$g"
done



Run it with something like:
./rate.sh|sort -r
Here is my output:
tbd - Totally Accurate Battle Simulator
tbd - The World Next Door
tbd - The First Tree
tbd - The Cycle
tbd - The Alto Collection
tbd - Sundered Eldritch Edition
tbd - Stranded Deep
tbd - SAMURAI SHODOWN NEOGEO COLLECTION
tbd - Remnant: From the Ashes
tbd - Pillars of Eternity - Definitive Edition
tbd - Pathway
tbd - Next Up Hero
tbd - Mutazione
tbd - Idle Champions of the Forgotten Realms
tbd - Genshin Impact
tbd - For Honor
tbd - Deponia The Complete Journey
tbd - Bridge Constructor: The Walking Dead
tbd - Barony
tbd - Anodyne 2: Return to Dust
97 - Grand Theft Auto V
96 - World of Goo
93 - Crashlands
93 - Carcassonne
92 - Celeste
91 - Ticket to Ride
91 - Inside
90 - Rayman Legends
90 - Metro 2033 Redux
90 - Into The Breach
90 - Fez
89 - Nuclear Throne
89 - Borderlands 2
88 - Torchlight II
88 - Torchlight
88 - A Short Hike
87 - Towerfall Ascension
87 - Sid Meier's Civilization VI
87 - HITMAN 3
87 - Enter the Gungeon
86 - The Messenger
86 - Sonic Mania
85 - Shadow Tactics: Blades of the Shogun
85 - Night in the Woods
84 - Oddworld: New 'n' Tasty
84 - Hyper Light Drifter
84 - Frostpunk
84 - Faster Than Light
84 - Bad North Jotunn Edition
83 - This War of Mine
83 - The Wolf Among Us
83 - Superbrothers: Sword & Sworcery EP
83 - Limbo
83 - Galactic Civilizations III
83 - Galactic Civilizations III
83 - Fortnite
83 - Ape Out
83 - Among Us
83 - Alan Wake
82 - Watch Dogs 2
82 - Solitairica
82 - Horace
82 - HITMAN
82 - Control
81 - Trackmania
81 - Sunless Sea
81 - Stories Untold
81 - Shadowrun Hong Kong
81 - Rising Storm 2: Vietnam
81 - Moonlighter
81 - Faeria
81 - Defense Grid: The Awakening
81 - Darksiders Warmastered Edition
81 - Creature in the Well
81 - Aztez
80 - The End is Nigh
80 - RiME
80 - Layers of Fear 2
80 - Layers of Fear
80 - Ironcast
80 - Everything
79 - Tacoma
79 - NBA 2K21
79 - Minit
79 - Alien: Isolation
79 - 3 out of 10: Season Two
78 - Wargame: Red Dragon
78 - The Textorcist
78 - SUPERHOT
78 - RollerCoaster Tycoon® 3: Complete Edition
78 - Rocket League®
78 - LEGO® Batman™ The Videogame
78 - LEGO® Batman™ 3 Beyond Gotham
78 - LEGO® Batman™ 2 DC Super Heroes
78 - Ken Follett's The Pillars of the Earth
78 - Horizon Chase Turbo
78 - Darkest Dungeon®
78 - Absolute Drift
78 - ABZU
77 - The Long Dark
77 - Overcooked! 2
77 - Overcooked
77 - Hue
77 - GNOG
77 - Elite Dangerous
77 - >observer_
77 - 20XX
76 - Tropico 5
76 - Surviving Mars
76 - Shadowrun Returns
76 - Q.U.B.E. 2
76 - Pikuniku
76 - Mutant Year Zero Road to Eden
76 - Metro Last Light Redux
76 - Last Day of June
76 - Kingdom Come Deliverance
76 - Hob
75 - The Bridge
75 - Stick it to the Man
75 - Rebel Galaxy
75 - RUINER
75 - Killing Floor 2
75 - Jurassic World Evolution
75 - Figment
75 - Dungeons 3
75 - Death Coming
75 - Crying Suns
75 - Borderlands: The Pre-Sequel
75 - A Total War Saga: TROY
74 - Where The Water Tastes Like Wine
74 - Railway Empire
74 - Kingdom New Lands
74 - For The King
74 - Costume Quest 2
73 - The Escapists 2
73 - The Escapists
73 - Sludge Life
73 - Sherlock Holmes Crimes and Punishments
73 - My Time at Portia
73 - Halcyon 6
73 - Ghostbusters The Video Game Remastered
73 - Alan Wake's American Nightmare
72 - Darksiders II Deathinitive Edition
72 - Amnesia: A Machine for Pigs
71 - Steep
71 - Little Inferno
71 - God's Trigger
71 - Football Manager 2020
71 - Conarium
70 - AER Memories of Old
69 - Blair Witch
69 - ARK: Survival Evolved
67 - World War Z
67 - The Spectrum Retreat
67 - Rage 2
67 - MudRunner
67 - InnerSpace
67 - Cities: Skylines
66 - Watch Dogs
66 - Close to the Sun
66 - City of Brass
65 - Just Cause 4
64 - Totally Reliable Delivery Service
64 - Farming Simulator 19
62 - Tales of the Neon Sea
62 - Stranger Things 3: The Game
61 - Obduction
60 - Lifeless Planet: Premier Edition
38 - Hello Neighbor
 - Verdun
 - Tyranny - Gold Edition
 - Shadowrun: Dragonfall - Director’s Cut
 - KillingFloor2Beta
 - Heroes & Generals WWII
 - Dandara: Trials of Fear Edition
 - Batman™ Arkham Knight
 - Batman™ Arkham City - Game of the Year Edition
 - Batman™ Arkham Asylum Game of the Year Edition
 - Assassins Creed Syndicate
 - 3 out of 10, EP 5: "The Rig Is Up!"
 - 3 out of 10, EP 4: "Thank You For Being An Asset"
 - 3 out of 10, EP 3: "Pivot Like A Champion"
 - 3 out of 10, EP 2: "Foundation 101"
 - 3 out of 10, EP 1: "Welcome To Shovelworks"
Would this be for critic scores or user scores ?
kokoko3k 30 Jul
Quoting: PublicNuisanceWould this be for critic scores or user scores ?
It is the metascore, so it should be the critic.
Quoting: kokoko3k
Quoting: PublicNuisanceWould this be for critic scores or user scores ?
It is the metascore, so it should be the critic.

Ah. Can't say I trust most critics these days.
kokoko3k 30 Jul
Quoting: PublicNuisance
Quoting: kokoko3k
Quoting: PublicNuisanceWould this be for critic scores or user scores ?
It is the metascore, so it should be the critic.

Ah. Can't say I trust most critics these days.

Really?
Why do you say that?

I compared a bunch of random titles from that list and the ratings are very close between critic and user scores...
While you're here, please consider supporting GamingOnLinux on:

Patreon, Liberapay or PayPal Donation.

This ensures all of our main content remains totally free for everyone with no article paywalls. We also don't have tons of adverts, there's also no tracking and we respect your privacy. Just good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register

Or login with...
Sign in with Steam Sign in with Twitter Sign in with Google
Social logins require cookies to stay logged in.

Livestreams & Videos
Community Livestreams
Latest Forum Posts