非常不错的flash采集程序测试通过
2024-05-04 11:02:16
供稿:网友
复制代码 代码如下:
<%
'--------------------------------------------------------------
Dbname = "../data/flash.mdb" '更改数据库文件位置,强烈建议更改为.asp的文件!
Set Conn = Server.CreateObject("ADODB.Connection")
Connstr = "Provider = Microsoft.Jet.OLEDB.4.0;Data Source = " & Server.Mappath(Dbname)
Conn.Open Connstr
'------------------------------------------------------------
Set List = Conn.Execute("Select * From System")
WebName = List("WebName")
WebUrl = List("WebUrl")
webemail = List("webemail")
zzname = List("zzname")
qq = List("webqq")
%>
复制代码 代码如下:
<%
if request("id") and request("overid") and request("download") <>"" then
response.redirect "getid.asp?id="&request("id")&"&overid="&request("overid")&"&download="&request("download")
else
%>
<body>
<P> </P>
<form name="form1" method="get" action="getid.asp">
开始采集的专辑ID号:
<input name="id" type="text" id="id" size="10">
结束ID:
<input name="overid" type="text" id="overid" size="10">
是否将数据下载到本地: 是
<input type="radio" name="download" value="yes">
否
<input name="download" type="radio" value="no" checked>
<input type="submit" name="Submit" value="提交">
</form>
</body>
</html>
<%end if%>
复制代码 代码如下:
<!-- #include File="Conn.asp" -->
<%
Server.ScriptTimeOut=999999999
%>
<%
if request("overid")="" then
response.write "结束ID不可为空"
response.end
elseif request("download")="" then
response.write "请选择是否下载"
response.end
end if
if request("id")=request("overid") then
response.write "采集任务结束"
response.end
end if
gourl1=request("id")
gourl1=gourl1+1
%>
<%
function GetPy(Str)
for i=1 to len(Str)
GetPy=GetPy&GetPyChar(mid(Str,i,1))
next
end function
Function GetURL(url)
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "GET", url, False
.Send
GetURL = bytes2bstr(.responsebody)
if len(.responsebody)<100 then