$ 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.
Diff your entire server config at ScriptRock.com