wget -t 1 -T 3 -q -O - "http://mobile.gazzetta.it/calcio/ultimi_risultati.jsp?nC=serieA&cC=1320" | awk 'BEGIN { FS="[<>\"]";f="JUVENTUS";r=-1;}$3=="giornata" { print "<big><span foreground=\"cyan\" size=\"x-large\"><b>Serie A [" $11 "]</b></span></big>";next;}$5=="text-decoration:none" {gsub(/ /,"",$7) rs = $7 " " $9;if(index($7,f)!=0){rs = "<span foreground=\"blue\"><b>" rs "</b></span>";split($7,t,"[ -]+");split($9,s,"[ -]+");if ((t[1]==f && s[1]>s[2])||(t[2]==f && s[2]>s[1])) r=0;else {if(s[1]==s[2]) r=1;else r=2;}}print rs;next;}END{exit r}'