Quantcast
Channel: Commands by matthewbauer
Viewing all articles
Browse latest Browse all 25

Get a metascore from metacritic.com

$
0
0
$ metascore(){ curl -s "http://www.metacritic.com/$@" | sed -rn 's|\t*<!-- metascore --><div id="metascore" class=".*">([^<]*)</div>|\1|p'; }

This will fetch a metascore from metacritic.com.

It requires a url from metacritic without the http://www.metacritic.com/

Example:

metascore games/platforms/wii/supermariogalaxy

-

metascore tv/shows/marriageref

-

metascore video/titles/newmoon

Would be cool to use this in some sort of a graph.

commandlinefu.com

Diff your entire server config at ScriptRock.com


Viewing all articles
Browse latest Browse all 25

Trending Articles