用php抓取google关键词排名(4)
if(strstr($more_key, "|")) {
$exkey = explode("|", $more_key);
}
if(!strstr($more_key, "\n")&&!strstr($more_key, "|")){
$exkey=array($more_key);
}
/*判断是否有www或者http://之类的东西*/
if (count(explode('.', $url_s)) <= 2) {
$url = ltrim($url_s, 'http://www');
$url = 'www.' . $url_s;
}
foreach ($exkey as $keyword) {
//$keyword;
ggsearch($url_s, $keyword);
}
$endtime = explode(' ', microtime());
$end = $endtime[0] + $endtime[1];
echo '<hr>';
echo '程序运行时间: ';
echo $end - $start;
//die();
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
相关新闻>>
- 发表评论
-
- 最新评论 更多>>