Search Baidu-Baidu website weight SEO tools

Source: Internet
Author: User

Search Baidu-Baidu website weight SEO tools
<Html>
<Title> Search Baidu-Baidu website weight SEO tools </title>
<Meta http-equiv = Content-Language content = zh-cn>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Meta name = keywords content = "Baidu keywords, keyword ranking, keyword query">
<Meta name = "description" content = "the main function of the Baidu keyword query system is to query whether the search result of a keyword in the baidu search engine tutorial contains your webpage, you can also query the page number Of Your webpage. ">
<Meta name = "robots" content = "index, follow"/>
<Meta name = "googlebot" content = "index, follow"/>

<Style type = "text/css tutorial">
<! --
. STYLE1 {color: #666666}
. STYLE3 {font-size: 12px}
. STYLE6 {color: # 0000FF}
. STYLE7 {color: #333333}
-->
</Style>

<Script language = "JavaScript">
Function check_value ()
{
If (document. myform. kw. value = "")
{
Alert ("sorry, the keyword cannot be blank! ");
Document. myform. kw. focus ();
Return false;
}
 
If (document. myform. url. value = "")
{
Alert ("sorry, the URL cannot be blank! ");
Document. myform. url. focus ();
Return false;
}

}
</Script>


<Body>


<H1> Baidu website weight (SEO) query tool </H1>
<Br>
<Form id = "myform" name = "myform" method = "get" action = "so. php tutorial "target =" _ blank "onSubmit =" return check_value (); ">
<Label> enter keywords:
<Input name = "kw" type = "text" size = "30"/>
</Label>
<P>
<Label> enter the URL: & nbsp;
<Input name = "url" type = "text" size = "30"/>
</Label>
<Br>
<Span class = "STYLE1"> & nbsp; & nbsp; </span> </p>

<P>
<Label> query depth: & nbsp;
<Input type = "text" name = "depth" size = "30"/>
</Label>
<Br>
<Span class = "STYLE1"> & nbsp; & nbsp; <span class = "STYLE3"> the query depth refers to the total number of pages to be queried, the default value is 10 pages. </span> </p>
<P>
<Label>
<Input type = "submit" name = "Submit" value = "query the weight of my website"/>
</Label>
</P>
</Form>

<H5>
<Span class = "STYLE7 STYLE3"> the main function of Baidu keyword query system is to query the search of a keyword in Baidu search engine. <br>
Check whether your webpage is included in the result and the page number Of Your webpage is displayed. If the ranking is poor, consider worrying about your website. <Br>
</Span> <br>
More practical functions of webmasters and Baidu will be available in the near future. Stay tuned!
</H5>

 


</Body>

</Html>
// Php processing code

<? 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; $ pstutorial = 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 "<title> Baidu website keyword weight query --". $ kw. "</title> ";
Echo "<H2> Baidu website keyword weight query result </H2> ";
// Echo "<br> ";
Echo "<br> query depth: <strong>". $ depth. "</strong> <br> ";

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 "Search for keywords in Baidu: '<strong> ". $ kw. "</strong> ', from' <strong> ". $ url. "</strong> 'results: <br> ";
$ Pagenum = $ pn/10 + 1;
Echo "<br> & nbsp;". $ n. "result ,";
Echo "ranked in the". $ pagenum. "Page in Baidu search results ";
Echo "<br> ";
Echo "& nbsp; <a href =". $ baidu_url. "target = blank> click here to view details </a> ";
Echo "<br> ";
$ Flag = 1;
$ N = $ n + 1;
}
 
$ Pn = $ pn + 10;
$ Ps = $ ps + 1;
If ($ ps = $ depth) $ next = 0;
If (! Strpos ($ str, "<font size = 3> next page </font>") $ next = 0; // determines whether there is any next page;
}

$ Time_end = get_microtime ();
$ Time = $ time_end-$ time_start;
If ($ flag = 0) echo "<br> no source from <strong>" is found under the current depth condition ". $ url. "</strong>, your worry is still to be improved, you can try to increase the depth of the query. <br> ";

$ N = $ n-1;
Echo "<br> <strong> Statistics: </strong> found ". $ ps. "Page, find ". $ n. "related results, time consumed :". $ time. "seconds. <br> ";
?>


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.