百度小偷

皇城秋子

皇城秋子

2016-02-19 12:08

有一种朋友不在生活里,却在生命力;有一种陪伴不在身边,却在心间。图老师即在大家的生活中又在身边。这么贴心的服务你感受到了吗?话不多说下面就和大家分享百度小偷吧。

%
Function bytes2BSTR(vIn)
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
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}","br")
Str = Replace(Str,vbcrlf,"br")
Str = Replace(Str,"br br","br")
Str = Replace(Str,"brbr","br")
Str = Replace(Str,"brbr","br")
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","{br}")
str = Replace(str,"/td","/td"&vbcrlf)
str = Replace(str,"td",vbcrlf&"td")

(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/webkaifa/)

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

re.Pattern=".*td class=f(.*)\/td"

Set Matches = re.Execute(str)

For Each Match in Matches
ubb=ubb&BR(Match.value)
next
re.Pattern="(- a .[^]*百度快照\/a)"
ubb = re.replace(ubb,"")
re.Pattern="(a class=""m"".[^]*.[^]*\/a)"
ubb = re.replace(ubb,"")
re.Pattern="(font color=#008000.[^]*\/font)"
ubb = re.replace(ubb,"hr") '每一条信息的间隔
ubb = Replace(ubb,"td class=f","")
ubb = Replace(ubb,"/td","")
ubb = BR(UBB)


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

(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/webkaifa/)

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


re.Pattern="div class=""p""(.*)\/div"
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
%
form method=post action="?"
input type="text" name="wd" input type="submit"
/form

展开更多 50%)
分享

猜你喜欢

百度小偷

Web开发
百度小偷

百度糯米怎么绑定百度钱包

手机软件 应用软件
百度糯米怎么绑定百度钱包

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

百度杀毒和百度卫士怎么卸载?

电脑网络
百度杀毒和百度卫士怎么卸载?

百度HI怎么注册 百度HI注册教程

软件教程
百度HI怎么注册  百度HI注册教程

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

百度钱包怎么充值 百度钱包如何充值

软件教程
百度钱包怎么充值 百度钱包如何充值

百度糯米怎么退款 百度糯米退款教程

软件教程
百度糯米怎么退款  百度糯米退款教程

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

整理一下SQLSERVER的排序规则

整理一下SQLSERVER的排序规则

Aspjpeg添加水印完整方法

Aspjpeg添加水印完整方法
下拉加载更多内容 ↓