asp yahoo收录与反链查询抓取代码
<%
response.expires = -1
response.addheader "cache-control","no-cache"
Response.AddHeader "Pragma","no-cache"
wd=Request("d")
If Request("s")="yahoos" Then
YahooUrl="http://sitemap.cn.yahoo.com/search?p="&wd&"&bwm=i"
Else
YahooUrl="http://sitemap.cn.yahoo.com/search?p="&wd&"&bwm=p"
End If
TempStr= getHTTPPage(YahooUrl)
dim YahooWebSite
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
YahooWebSite=match1.Value
Next
Set matches = Nothing
Set reg = Nothing
YahooWebSite=Replace(YahooWebSite,"共 ","")
YahooWebSite=Replace(YahooWebSite," 条","")
YahooWebSite=Replace(YahooWebSite,",","")
If YahooWebSite="" Then
If Request("s")="yahoos" Then
Response.Write ("document.write (""x"");")
Else
Response.Write ("document.write (""x"");")
End If
Else
If Request("s")="yahoos" Then
Response.Write ("document.write ("""&YahooWebSite&""");")
Else
Response.Write ("document.write ("""&YahooWebSite&""");")
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
%>
迷你世界越南服 安卓版v1.7.15
迷你世界越南服是一款精美的3D沙盒游戏,拥有极高的创作自由度
糖饼外传内置菜单 安卓版v1.0.87
糖饼外传内置菜单是一款非常好玩的模拟经营类手游,玩家在游戏中
我的世界化学交换空岛整合包 最新版v1.0
我的世界化学交换空岛整合包是一款像素风格的沙盒生存游戏,游戏
创造厨房免广告版 v1.0.10
创造厨房无广告版是一款像素风模拟经营类手游,玩家们将在这里化
SimCity BuildIt无限金币版 安卓修改版v1.60.1.133743
SimCity BuildIt无限金币版是经过破解的版本,在