Login   Register  
PHP Classes
elePHPant
Icontem

Simpler

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Google Keyword Position  >  All threads  >  Simpler  >  (Un) Subscribe thread alerts  
Subject:Simpler
Summary:Use the cache link
Messages:1
Author:jan
Date:2009-10-01 14:43:45
 

  1. Simpler   Reply   Report abuse  
Picture of jan
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.'(.*?)&amp;cd=(.*?)&amp;/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;