Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'simple_html_dom.php';
- $html = file_get_html('http://br.crossfire.z8games.com/profile/14047655');
- $results = $html->find('.sgw-user-profile');
- foreach($results as $statusPlayers) {
- $killPlayer = $statusPlayers->find('#geral div', 0)->attr['data-kills'];
- $headShot = $statusPlayers->find('#geral div', 0)->attr['data-headshots'];
- $deathPlayer = $statusPlayers->find('#geral div', 0)->attr['data-deaths'];
- $totalPartidas = $statusPlayers->find('#geral div', 0)->attr['data-games_played'];
- $urlClan = $statusPlayers->find('#user_name_details div[3] div a', 0)->attr['href'];
- $weaponPlayer = $statusPlayers->find('#armoury div[3] div[1] div div[2]', 0)->plaintext;
- $name = $statusPlayers->find('#user_name_details div[2]', 0)->plaintext;
- if(gettype($statusPlayers->find('#user_name_details div[3] div a', 0)) == "NULL") {
- echo 'SEM TIME';
- }else {
- $clantag = $statusPlayers->find('#user_name_details div[3] div a', 0)->plaintext;
- }
- $status = $statusPlayers->find('#facebooksharebutton', 0)->attr['data-usn'];
- $nivelPlayer = $statusPlayers->find('#top_level_user_details div[2] div[1]', 0)->attr['data-rank_title'];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement