複製代碼代碼如下:
<%
'--------------------------------------------------------------
Dbname="../data/flash.mdb"'更改數據庫文件位置,強烈建議更改為.asp的文件!
SetConn=Server.CreateObject("ADODB.Connection")
Connstr="Provider=Microsoft.Jet.OLEDB.4.0;DataSource="&Server.Mappath(Dbname)
Conn.OpenConnstr
'------------------------------------------------------------
SetList=Conn.Execute("Select*FromSystem")
WebName=List("WebName")
WebUrl=List("WebUrl")
webemail=List("webemail")
zzname=List("zzname")
qq=List("webqq")
%>
複製代碼代碼如下:
<%
ifrequest("id")andrequest("overid")andrequest("download")<>""then
response.redirect"getid.asp?id="&request("id")&"&overid="&request("overid")&"&download="&request("download")
else
%>
<body>
<P></P>
<formname="form1"method="get"action="getid.asp">
開始採集的專輯ID號:
<inputname="id"type="text"id="id"size="10">
結束ID:
<inputname="overid"type="text"id="overid"size="10">
是否將數據下載到本地:是
<inputtype="radio"name="download"value="yes">
否
<inputname="download"type="radio"value="no"checked>
<inputtype="submit"name="Submit"value="提交">
</form>
</body>
</html>
<%endif%>
複製代碼代碼如下:
<!--#includeFile="Conn.asp"-->
<%
Server.ScriptTimeOut=999999999
%>
<%
ifrequest("overid")=""then
response.write"結束ID不可為空"
response.end
elseifrequest("download")=""then
response.write"請選擇是否下載"
response.end
endif
ifrequest("id")=request("overid")then
response.write"採集任務結束"
response.end
endif
gourl1=request("id")
gourl1=gourl1+1
%>
<%
functionGetPy(Str)
fori=1tolen(Str)
GetPy=GetPy&GetPyChar(mid(Str,i,1))
next
endfunction
FunctionGetURL(url)
SetRetrieval=CreateObject("Microsoft.XMLHTTP")
WithRetrieval
.Open"GET",url,False
.Send
GetURL=bytes2bstr(.responsebody)
iflen(.responsebody)<100then