Retrieve Motorstorm Apocalypse Profile Data

From JoBaPedia
Revision as of 18:19, 31 October 2011 by Joachim (talk | contribs) (New page: export url=http://www.motorstorm.com cookies=/dev/shm/msa.wget.cookies.$$ vip=joban123 wget -O - -q --save-cookies=$cookies $url/language/country/Deutschland >/dev/null wget -O - -q -...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
export url=http://www.motorstorm.com  cookies=/dev/shm/msa.wget.cookies.$$  vip=joban123
wget -O - -q --save-cookies=$cookies $url/language/country/Deutschland >/dev/null
wget -O - -q --load-cookies=$cookies --save-cookies=$cookies $url/language/dob/1-1-1966 >/dev/null
wget -O - -q --load-cookies=$cookies $url/profile/$vip \
  | awk 'BEGIN { o=0 } /playersbeaten/ { o=1 } /li>/ { o=0 } o==1 { print }' \
  | sed 's/<[^>]*>//g' \
  | uniq \
  | awk 'NR==2 { p=$1 } NR==3 { print $0 ": " p }'
Players Beaten: 11386