您现在的位置是:网站首页> 编程资料编程资料
可以查询百度排名的asp源码放送了_应用技巧_
2023-05-25
263人已围观
简介 可以查询百度排名的asp源码放送了_应用技巧_
以下是源码,请命名为.asp文件
<%
bpn = request("bpn")
if(bpn = "") then
bpn = "0"
end if
intbpn = cint(bpn)
if request("action") = "1" then
word = request("word")
url = request("url")
if word <> "" then
getCategories()
if url <> "" then
getCategories2()
end if
end if
end if
Function getCategories()
response.write("'"&word&"' 关键词在百度搜索排名中,前10位网站!
")
on error resume next
Dim oXMLHTTP
Dim oCategories
Dim BodyText
Dim Pos,Pos1
Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
oXMLHTTP.open "GET","http://www.baidu.com/baidu?word="&word,False
oXMLHTTP.send
BodyText=oXMLHTTP.responsebody
BodyText=BytesToBstr(BodyText,"gb2312")
Pos=Instr(BodyText," pos1=Instr(BodyText,"")
BodyText=mid(BodyText,pos,pos1)
BodyText=split(BodyText,"
复制代码 代码如下:
<%
bpn = request("bpn")
if(bpn = "") then
bpn = "0"
end if
intbpn = cint(bpn)
if request("action") = "1" then
word = request("word")
url = request("url")
if word <> "" then
getCategories()
if url <> "" then
getCategories2()
end if
end if
end if
Function getCategories()
response.write("'"&word&"' 关键词在百度搜索排名中,前10位网站!
")
on error resume next
Dim oXMLHTTP
Dim oCategories
Dim BodyText
Dim Pos,Pos1
Set oXMLHTTP = CreateObject("Microsoft.XMLHTTP")
oXMLHTTP.open "GET","http://www.baidu.com/baidu?word="&word,False
oXMLHTTP.send
BodyText=oXMLHTTP.responsebody
BodyText=BytesToBstr(BodyText,"gb2312")
Pos=Instr(BodyText," pos1=Instr(BodyText,"")
BodyText=mid(BodyText,pos,pos1)
BodyText=split(BodyText,"
| pos1=Instr(BodyText(thei)," | ")
| pos1=Instr(BodyText(thei)," | ")
