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转载) |