查百度—百度網站權重SEO工具查詢
查百度—百度網站權重SEO工具查詢
百度網站權重(SEO)查詢工具
百度關鍵字查詢系統的主要功能是:查詢百度搜尋引擎某個關鍵字的搜
索結果中是否包含您的網頁,並且能夠查詢出您的的網頁排在第幾頁.如果排名較差可以考慮適當的再憂化一下您的網站了。
近日將會推出站長和百度的更多實用功能,敬請關注!
//php處理代碼
function get_microtime()
{
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = get_microtime();
set_time_limit(0);
$kw=$_GET["kw"];
$url=$_GET["url"];
$depth=$_GET["depth"];
$next=1;$pn=0;$flag=0;$n=1;$ps教程=0;
$baseurl="http://www.baidu.com/s?";
$kw=str_replace("+","%2B",$kw);
$kw=str_replace(" ","%20",$kw);
if($depth==""||$depth<=0) $depth=10;
if($depth>76) $depth=76;
echo "百度網站關鍵字權重查詢 -- ".$kw."";
echo "
百度網站關鍵字權重查詢結果
";
//echo "
";
echo "
查詢深度為:
".$depth."
";
while($next==1)
{
$baidu_url=$baseurl."lm=0&si=&rn=10&tn=wangcong&ie=gb2312&ct=0&wd=".$kw."&pn=".$pn."&cl=3";
$str=file_get_contents($baidu_url);
$baidu_url=str_replace("%20","+",$baidu_url);
if(strpos($str,$url))
{
if($n==1) echo "在百度中尋找關鍵字:'".$kw."',來自'".$url."'的結果有:
";
$pagenum=$pn/10+1;
echo "
第".$n."條結果, ";
echo "在百度搜尋結果中排在第".$pagenum."頁";
echo "
";
echo " 點此查看";
echo "
";
$flag=1;
$n=$n+1;
}
$pn=$pn+10;
$ps=$ps+1;
if($ps==$depth) $next=0;
if(!strpos($str,"下一頁")) $next=0; //判斷有沒有下一頁;
}
$time_end = get_microtime();
$time = $time_end - $time_start;
if($flag==0) echo "
在當前的深度條件下沒有找到來自 ".$url." 的結果,您的憂化還有待進步,您可以嘗試加大查詢深度.
";
$n=$n-1;
echo "
統計資訊:一共找了".$ps."頁,找到".$n."條相關結果,耗時:".$time."秒.
";
?>
http://www.bkjia.com/PHPjc/444970.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/444970.htmlTechArticle查百度百度網站權重SEO工具查詢 html title查百度百度網站權重SEO工具查詢/title meta http-equiv=Content-Language content=zh-cn meta http-equiv=Content-Type co...