$kw="SEO"; //keyword
for($i=0;$i<=9;$i++)
{
$dom = new domdocument;
$url = file_get_contents('http://blogsearch.google.com/blogsearch?q='.urlencode($kw).'&num=100&start='.$i.'00');
$a=str_replace(array("", ""), "", $url);
@$dom->loadHTML($a);
$xpath = new domxpath($dom);
$nodes = $xpath->query('//a[substring(@id,1,2)="p-"]');
foreach ($nodes as $node)
{
$anchortext = $node->firstChild->data;
$url = $node->getAttribute('href');
echo ''.$anchortext.'';
}
}
?>