asp sogou收录抓取程序
<%
response.expires = -1
response.addheader "cache-control","no-cache"
Response.AddHeader "Pragma","no-cache"
wd=Request("d")
If Request("s")="sogous" Then
SoGouUrl="http://www.sogou.com/web?query=link%3A"&wd
Else
SoGouUrl="http://www.sogou.com/web?query=site%3A"&wd
End If
TempStr= getHTTPPage(SoGouUrl)
dim SoGouWebSite
set reg=new Regexp
reg.Multiline=True
reg.Global=Flase
reg.IgnoreCase=true
reg.Pattern=""
Set matches = reg.execute(TempStr)
For Each match1 in matches
SoGouWebSite=match1.Value
Next
Set matches = Nothing
Set reg = Nothing
SoGouWebSite=Replace(SoGouWebSite,"","")
SoGouWebSite=Replace(SoGouWebSite,",","")
If SoGouWebSite="" Then
If Request("s")="sogous" Then
Response.Write ("document.write (""x"");")
Else
Response.Write ("document.write (""x"");")
End If
Else
If Request("s")="sogous" Then
Response.Write ("document.write ("""&SoGouWebSite&""");")
Else
Response.Write ("document.write ("""&SoGouWebSite&""");")
End If
End If
Function getHTTPPage(Path)
t = GetBody(Path)
getHTTPPage=BytesToBstr(t,"gb2312")
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
%>
迷你世界越南服 安卓版v1.7.15
迷你世界越南服是一款精美的3D沙盒游戏,拥有极高的创作自由度
糖饼外传内置菜单 安卓版v1.0.87
糖饼外传内置菜单是一款非常好玩的模拟经营类手游,玩家在游戏中
我的世界化学交换空岛整合包 最新版v1.0
我的世界化学交换空岛整合包是一款像素风格的沙盒生存游戏,游戏
创造厨房免广告版 v1.0.10
创造厨房无广告版是一款像素风模拟经营类手游,玩家们将在这里化
SimCity BuildIt无限金币版 安卓修改版v1.60.1.133743
SimCity BuildIt无限金币版是经过破解的版本,在