查百度—百度網站權重SEO工具查詢_PHP教程

來源:互聯網
上載者:User
查百度—百度網站權重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...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.