国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

小偷程序2

2024-05-04 11:02:22
字體:
來源:轉載
供稿:網友
復制代碼 代碼如下:
<%
DJ54_path = "data/data.mdb" '數據庫地址
Set conn= Server.CreateObject("ADODB.Connection")
connstr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath(DJ54_path)
conn.Open connstr
Function GetHttpPage(HttpUrl)
If IsNull(HttpUrl)=True Or HttpUrl="$False$" Then
GetHttpPage="$False$"
Exit Function
End If
Dim Http
Set Http=server.createobject("MSXML2.XMLHTTP")
Http.open "GET",HttpUrl,False
Http.Send()
If Http.Readystate<>4 then
Set Http=Nothing 
GetHttpPage="$False$"
Exit function
End if
GetHTTPPage=bytesToBSTR(Http.responseBody,"GB2312")
Set Http=Nothing
If Err.number<>0 then
Err.Clear
End If
End Function

Function BytesToBstr(Body,Cset)
Dim Objstream
Set Objstream = Server.CreateObject("adodb.stream")
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

function mymid(byval A_strString,byval A_strPattern)
dim MM_objRegexp
dim MM_strExecute

set MM_objRegexp=new regexp
with MM_objRegexp
.Pattern=A_strPattern
.IgnoreCase=True
.Global=false
set MM_strExecute=.Execute(A_strString)
if MM_strExecute.count<>0 then
mymid=MM_strExecute(0).SubMatches(0)
end if
end with
mymid=trim(mymid)
set MM_objRegexp=nothing
end function

Function RegListGet(str,patrn,mysky)
set tempReg=new RegExp
tempReg.IgnoreCase=false
tempReg.Global=true
tempReg.Pattern=patrn
set matches=tempReg.execute(str)
for each match in matches
content=content&match.value&mysky
next
RegListGet=content
set matches=nothing
set tempReg=nothing
end Function

DJ54_SF = GetHttpPage("http://www.haosf.com/")
DJ54_SF = replace(DJ54_SF,vbcrlf,"")
DJ54_SF = replace(DJ54_SF,chr(10),"")
DJ54_SF = trim(mymid(DJ54_SF,"zjkf.asp"&chr(34)&"></script>(.+?)<script language=javascript src="&chr(34)&"txtj2.asp"&chr(34)&">"))
DJ54_SF = RegListGet(DJ54_SF,"<script>o(.+?)</script>","BT54")
DJ54_SF = replace(DJ54_SF,"/","")
DJ54_BT54_SF = split(DJ54_SF,"BT54")
response.write "采集成功 共采集當日"&Ubound(DJ54_BT54_SF)-1 &"個SF<br/>"

set rs = server.createobject("adodb.recordset")
sql = "select * from sfdata"
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 淮安市| 来凤县| 依兰县| 留坝县| 阿坝县| 孝昌县| 高清| 铜陵市| 图们市| 长沙县| 云和县| 元谋县| 繁昌县| 五华县| 钟山县| 仁怀市| 龙山县| 峨眉山市| 伽师县| 琼中| 拉萨市| 六盘水市| 洪江市| 宜阳县| 朝阳区| 贡觉县| 岱山县| 柏乡县| 田林县| 永吉县| 台山市| 迁安市| 陈巴尔虎旗| 平山县| 雷山县| 浑源县| 游戏| 乌鲁木齐县| 南漳县| 平阳县| 高尔夫|