Retrieve Motorstorm Apocalypse Profile Data: Difference between revisions
Jump to navigation
Jump to search
(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 -...) |
No edit summary |
||
Line 1: | Line 1: | ||
export url=http://www.motorstorm.com cookies=/dev/shm/msa.wget.cookies.$$ vip=joban123 | export url=http://www.motorstorm.com cookies=/dev/shm/msa.wget.cookies.$$ vip=joban123 what=playersbeaten | ||
wget -O - -q --save-cookies=$cookies $url/language/country/Deutschland >/dev/null | 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 --save-cookies=$cookies $url/language/dob/1-1-1966 >/dev/null | ||
wget -O - -q --load-cookies=$cookies $url/profile/$vip \ | wget -O - -q --load-cookies=$cookies $url/profile/$vip \ | ||
| awk | | awk "BEGIN { o=0 } /$what/ { o=1 } /li>/ { o=0 } o==1 { print }" \ | ||
| sed 's/<[^>]*>//g' \ | | sed 's/<[^>]*>//g' \ | ||
| uniq \ | | uniq \ | ||
| awk 'NR==2 { p=$1 } NR==3 { print $0 ": " p }' | | awk 'NR==2 { p=$1 } NR==3 { print $0 ": " p }' | ||
Players Beaten: 11386 | Players Beaten: 11386 | ||
what can be playersbeaten, accolades, betswon or eventswon |
Latest revision as of 18:25, 31 October 2011
export url=http://www.motorstorm.com cookies=/dev/shm/msa.wget.cookies.$$ vip=joban123 what=playersbeaten 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 } /$what/ { 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
what can be playersbeaten, accolades, betswon or eventswon