Search code examples
phpscreen-scrapingxbox

scraping Xbox Live member current activity


I'm looking into how to get a Xbox Live member's presence (i.e. Not Online, Online playing _).

The only way is to be signed into Xbox.com, visit the player's page, and scrape some text from a div. http://live.xbox.com:80/en-US/MyXbox/Profile?gamertag=example Seen here

<div id="CurrentActivity">
     Call of Duty Black Ops - In Combat Training on Summit
</div>

Is there a way to sign into http://xbox.com with a script or otherwise find a player's current status?

EDIT: Here is my project Xbox Messenger / Status


Solution

  • You cab use curl in PHP. You will need to store the cookies and reuse your cookie file with subsequent requests.

    Another scripting option is to use mechanize. There isn't a PHP library last I checked, but there is one for Python, perl and Ruby.