jan - 2009-10-01 14:43:45
Great idea but it can be more simpler and It must support more options:
-support of curl and fget as option
why not loop through google and use the cache links as reference ?
something like this
for($page = 0; $page < 3; $page++) {
$url="http://www.google.nl/search?hl=nl&site=&q=".$keyword."&start=".$page*10;
$this->curl($url);// function curl
if(preg_match('/a href="http:\/\/[^"]+search[^"]+'.$search_domain.'(.*?)&cd=(.*?)&/is',$this->page,$title)){
$keywords['title']['link']=$this->domain.str_replace(strstr($title[1],"+".$keyword),"",$title[1]);
$keywords['title']['position']=$title[2];
break;
}
}
if(empty($keywords))
return false;
return $keywords;