香小子 发表于 2005 年 7 月 21 日 08:55:12

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>
<tr>
 <td><div align="center"><a href="http://www.zzfbi.com">站长情报网</a>,为站长提供最实用最珍贵的情报<script language="JavaScript" type="text/javascript" src="http://w.50bang.com/click.js?user_id=140022"></script></div>
</table>         
</body>
</html>

hliang0813 发表于 2005 年 7 月 21 日 09:00:40

。。。。。

ASP的~~~

白金断戒 发表于 2005 年 7 月 21 日 10:40:02

不懂这个

wode998 发表于 2005 年 7 月 21 日 10:53:02

收藏先
页: [1]
查看完整版本: Baidu关键字搜索频率查询小偷源代码