远程读取别人的页面
[code]<html>6i?C(h4q/{"rI1`3`<head>
<title>AUTOGET</title> E AW.@5c|S
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> t]*V;D)ye'w HE
</head>+gxrW1s!^+z
<body bgcolor="#FFFFFF">
<%'on error resume next
'-----------建一个叫data的access表,字段(名称,来源,内容)
Set conn = Server.CreateObject("ADODB.Connection")
DBPath = Server.MapPath("data.mdb")L^z K1Q R^XG
conn.Open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DBPath &";"
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from data")_~vWt
rs.open sql,conn,3,2P0TPx~QOp
'以上完成表的打开|il/qfU:F.H
Set HttpObj = Server.CreateObject("AspHTTP.Conn")v6^-y Me&S},fr
dim fd
fd = 111Kf#VWq)t$K8H
SearchFolder fdn drrHDU/]
Y/d&MX5Nw*S w{Z
'以下是过程
Sub SearchFolder( fd )
4WI1I#s }1_+y
do while fd <> 500
Response.Write fd"qSZ{p
HTTPObj.Url = "http://www.object.net/Read.asp?ArticleID=";&fd
HttpObj.RequestMethod = "GET"-XS*j mpKd@0S
content = HTTPObj.GetURLX7\ Qc I5cC/}.w
'取标题<img[)s;R3f&XE:sn"N
pos0=instr(1,content,"<img"),_Z5|3\)Jy\&_H?'~1O
pos1=instr(pos0,content,">")