Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 16 lines (11 sloc) 0.496 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php

header('Content-type: text/plain');

$doc = new DOMDocument();
$doc->preserveWhiteSpace = false;
//$doc->loadHTML(file_get_contents('http://www2.blogger.com/profile/14267910391550235126'));
$doc->loadHTML(file_get_contents('http://www.blogger.com/profile/08406820780522358646'));
$xpath = new DOMXPath($doc);
$results = $xpath->query('//tr[not(@class)]//th[not(@class)]//a');

foreach($results as $item)
   echo $item->nodeValue.' -- '.$item->getAttribute('href')."\n";


?>
Something went wrong with that request. Please try again.