Clear Current Xbox Live Member Activity

I’m learning how to get an Xbox Live member presence (i.e. not online, online game _).

The only way to log in to Xbox.com is to visit the player’s page and clear the text from the div. http://live.xbox.com:80/en-US/MyXbox/Profile?gamertag=example View here

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

Is there a way to log into http://xbox.com using a script, or else find the current player status?

EDIT: Here is my Xbox Messenger / Status project

+3
source share
4 answers

You are using cab curlin PHP. You will need to save cookies and reuse the cookie with subsequent requests.

mechanize. PHP, , Python, perl Ruby.

+3

You can record a robot using the IRobotSoft web scraper if you just need a simple solution.

0
source

This is the code I just made will work

$opentag='<div class="presence">';
$closetag='</div>';
$url=file_get_contents('http://live.xbox.com/en-US/Profile?gamertag=major%20nelson')


$presence=explode($opentag, $url);
$presence=explode($closetag, $presence[1]);

echo trim($presence[0]);
0
source

Source: https://habr.com/ru/post/1791584/


All Articles