抓取bing收录与反连代码
response.expires = -1
response.addheader "cache-control","no-cache"
Response.AddHeader "Pragma","no-cache"
wd=Request("d")
If Request("s")="bings" Then
bingUrl=""
Else
bingUrl=""
End If
TempStr= getHTTPPage(bingUrl)
dim bingWebSite
set reg=new Regexp
reg.Multiline=True
reg.Global=Flase
reg.IgnoreCase=true
reg.Pattern="条结果,共 ((.|n)*?) 条"
Set matches = reg.execute(TempStr)
For Each match1 in matches
bingWebSite=match1.Value
Next
Set matches = Nothing
Set reg = Nothing
bingWebSite=Replace(bingWebSite,"条结果,共 ","")
bingWebSite=Replace(bingWebSite," 条","")
bingWebSite=Replace(bingWebSite,"","")
bingWebSite=Replace(bingWebSite,",","")
bingWebSite=Replace(bingWebSite,"","")
If bingWebSite="" Then
If Request("s")="bings" Then
Response.Write ("document.write ("""");")
Else
Response.Write ("document.write ("""");")
End If
Else
If Request("s")="bings" Then
Response.Write ("document.write ("""");")
Else
Response.Write ("document.write ("""");")
End If
End If
Function getHTTPPage(Path)
t = GetBody(Path)
getHTTPPage=BytesToBstr(t,"UTF-8")
End function
Function GetBody(url)
on error resume next
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Get", url, False, "", ""
.Send
GetBody = .ResponseBody
End With
Set Retrieval = Nothing
End Function
Function BytesToBstr(body,Cset)
dim objstream
set objstream = Server.CreateObject("ado"&"db.str"&"eam")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = Cset
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function
%>
猪笼城寨手游
猪笼城寨游戏是非常好玩的一款模拟经营类型的手游,在这里玩家们
商道高手vivo版本
商道高手vivo版是一款商战题材的模拟经营手游,游戏画面精美
我在大清当皇帝手游
我在大清当皇帝手游是一款以清代为历史的模拟类手游,相信玩家们
解忧小村落最新版2024
解忧小村落游戏是非常好玩的一款休闲放置经营类型的手游,在这里
洋果子店rose2中文版
洋果子店rose2中文版是一款非常好玩的模拟经营手游,精美的