赞助广告 赞助广告
  当前位置:网络学院ASP技术XML相关 → Baidu关键字搜索频率查询小偷源代码
Baidu关键字搜索频率查询小偷源代码
日期:2005年7月19日 作者: 人气: 查看:[大字体 中字体 小字体]
Baidu关键字搜索频率查询小偷源代码

演示:http://www.zzfbi.com/tool/bdkey.asp
源码下载:http://www.zzfbi.com/tool/bdkey.rar
我的水平很低,别笑我:(
全部代码:
<HTML><HEAD><TITLE>Baidu关键字搜索频率查询 - 站长情报网</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content=关键字,搜索频率,关键字搜索频率 name=description>
<META content=站长情报网,关键字搜索频率 name=keywords>
<link rel="stylesheet" type="text/css" href="css/whois.css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="770" border="0" align="center" cellpadding="1" cellspacing="1">
  <tr>
    <td height="19"> <form name="form1" method="get" action="bdkey.asp">
        <div align="center">输入要查询的关键词
          <input name="domain" type="text" id="domain" size="14">
            
          <input type="submit" name="Submit" value="查 询">
        </div>
      </form></td>
  </tr>
  <tr>
    <td width="30%" height="32" bgcolor="#FFFFFF"> <div align="center">
        <%
On Error Resume Next
Server.ScriptTimeOut=9999999
Function getHTTPPage(Path)
        t = GetBody(Path)
        getHTTPPage=BytesToBstr(t,"GB2312")
End function
Function bstr(vIn)

        Dim strReturn,i,ThisCharCode,innerCode,Hight8,Low8,NextCharCode
        strReturn = ""
       
        For i = 1 To LenB(vIn)
                ThisCharCode = AscB(MidB(vIn,i,1))
                If ThisCharCode < &H80 Then
                        strReturn = strReturn & Chr(ThisCharCode)
                Else
                        NextCharCode = AscB(MidB(vIn,i+1,1))
                        strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
                        i = i + 1
                End If
        Next
       
        bstr = strReturn        
End Function

Function GetURL(url)
    Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
       
          With Retrieval
          .Open "GET", url, false
                  .setRequestHeader "Content-Type","application/x-www-form-urlencoded"
          .Send
          GetURL = .ResponseBody
          End With
    Set Retrieval = Nothing
        GetURL=bstr(GetURL)
End Function
%>
        <% domain= Request.QueryString("domain")
if domain<>"" then
  
TakenHTML = GetURL("http://www2.baidu.com/inquire/dsquery.php?qstr="&domain&"&submit=1")
if instr(TakenHTML,"对不起,没有与 <font color=red>") then
response.Write("不好意思,此词已被百度屏蔽或没有与之相关的关键词")
else
start = instr(takenHTML,"<table border=")
finish = instr(takenHTML,"</table>")
takenHTML=mid(takenHTML,start,finish-start)
response.Write(TakenHTML)
response.Write("</table>")
end if
%></pre>
        </div></td>
  </tr>
  <% end if
%>  
  
</td></tr><tr><td align=center>这个功能可以查询到某个关键词及其相近的关键词在百度的搜索频率,这样可以帮你优化网页。</td></tr>
    </table>                       
</body>
</html>

(出处:CodeFans转载)

相关文章:
 
·关键字搜索者
·Flash表单制作实例--搜寻关键字
·实现支持逻辑搜索/单词搜索/词组搜索+支持OR/AND关键字!
·实现支持逻辑搜索/单词搜索/词组搜索+支持OR/AND关键字的VBS CLASS
·实现支持逻辑搜索/单词搜索/词组搜索+支持OR/AND关键字的VBS CLASS!
·关键字选择技巧
·SEO作弊边缘,关键字
相关软件:
 
  特别推荐
  热点TOP10