If you’re not a member of the XCDP, the only way to access gamertag information is via the public “gamercard”, here. Microsoft, being Microsoft, hasn’t really left the information in a particularly useful format, so here’s a small script that boils all the HTML down to the bare stats and facts.
Download here: http://mechiwiki.com/uploads/xbl.class.zip
It’s unfortunate that one is forced to resort to scraping information out of HTML, rather than Microsoft providing us with public XML feeds that they reserve for XCDP members. Nevertheless, if all you want is the basic info (perhaps to design a gamercard), this script works perfectly.
And if you’re someone who likes to see what they’re getting before downloading, here’s a demo with my gamertag: http://mechiwiki.com/uploads/xbl.class.php.
Hi Josef,
1st : thanks for the script ! Great job, great news
2nd : The script does not works whe a gamertag has whitespace … Any idea to fix it ? May be i forget something ?
Thanks
Regards,
Scalap
Apologies for the bug and thanks for the heads-up. I’ve now fixed the script to accommodate gamertags that include whitespace.