什么是百度小偷

来源:爱站网时间:2021-09-16编辑:网友分享
什么是百度小偷,听上去这个挺怪的,爱站技术小编觉得大家也不用觉得太奇怪,因为接下来小编会带大家了解到这个名词是什么。大家有兴趣的可以看看。

Function bytes2BSTR(vIn)
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode 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
bytes2BSTR = ubb(strReturn)
End Function

Function dq(key)
dim XmlHttp
set XmlHttp = CreateObject("Microsoft.XMLHTTP")
XmlHttp.Open "GET","http://www.baidu.com/s?wd="&key&"&pn="&request("pn"), false
XmlHttp.setRequestHeader "Content-Type","text/XML"
XmlHttp.Send
dq = bytes2BSTR(XmlHttp.responseBody)
End Function

Function BR(Str)
Str = Replace(Str,"{br}","
")
Str = Replace(Str,vbcrlf,"
")
Str = Replace(Str,"

","
")
Str = Replace(Str,"

","
")
Str = Replace(Str,"

","
")
BR = Str
End Function


function ubb(str)

if instr(str,"找到相关网页") = 0 then
ubb = "没有搜索到任何内容"
exit function
end if

str = Replace(str,vbcrlf,"{br}")
str = Replace(str,"
","{br}")
str = Replace(str,"",""&vbcrlf)
str = Replace(str,"

dim re,Match,Matches
set re = New RegExp
re.Global = True
re.IgnoreCase = True

re.Pattern=".*\

(.*)\"

Set Matches = re.Execute(str)

For Each Match in Matches
ubb=ubb&BR(Match.value)
next
re.Pattern="(\- \百度快照\)"
ubb = re.replace(ubb,"")
re.Pattern="(\
.[^\)"
ubb = re.replace(ubb,"")
re.Pattern="(\.[^\)"
ubb = re.replace(ubb,"


") '每一条信息的间隔
ubb = Replace(ubb,"

","")
ubb = Replace(ubb,"","")
ubb = BR(UBB)


re.Pattern="(找到相关网页.*秒)"
Set Matches = re.Execute(str)
set Match = Matches(0)
ubb = ubb & Match & "
"

str = Replace(str,"",""&vbcrlf)


re.Pattern="\

(.*)\"
Set Matches = re.Execute(str)
set Match = Matches(0)
Dim TheLink
TheLink = Match
re.Pattern="href=s?(.[^>]*)"
TheLink = re.replace(TheLink,"href=""$1""")

ubb = ubb & TheLink
end function

if len(request("wd")) > 0 then
response.write dq(request("wd"))
end if
%>



以上内容就是爱站技术频道小编为大家分享的什么是百度小偷,看完以上分享之后,大家应该都知道什么是百度小偷了吧。

上一篇:一个ASP小马的表达式

下一篇:怎么用一段采集程序代码

相关阅读

热门软件源码

最新软件源码下载