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
You are using cab curlin PHP. You will need to save cookies and reuse the cookie with subsequent requests.
curl
mechanize. PHP, , Python, perl Ruby.
mechanize
http://live.xbox.com/en-US/Profile?Gamertag=GAMERTAG
Xbox Live Status, . , .
You can record a robot using the IRobotSoft web scraper if you just need a simple solution.
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]);
Source: https://habr.com/ru/post/1791584/More articles:Can I write an insert query using data from two joined tables? - sqlHow to determine which schema (xsd) files should be included in my svcutil command line? - .netThe first user is Capistrano. Error not returned, but code not loaded - ruby-on-railsВ чем разница между == и ===? - actionscript-3How to generate a call graph for a java project - javaI can rotate the images horizontally / vertically, but I cannot rotate them using the GD2 library - phpHow can I build CC.NET for a specific hg tag (Mercurial)? - mercurialWindows authentication mode but not required - c #Android TextView SetText () stops highlighting another TextView - workaround? - androidUIScrollView with Images - iosAll Articles