如果不使用临时文件,可以这样(不使用_INetGetSource函数)#include <Array.au3>
$downurl = "http://xl.dygod.com/html/tv/oumeitv/20090617/19649.html"
_movieDownURL($downurl)
Func _movieDownURL($downurl);分析出下载连接
Local $sReturn, $Str_s = 'href="', $Str_e = '">ftp'
$oIE = _XmlHttp($downurl)
$sReturn = StringRegExp($oIE, $Str_s & '(.*)' & $Str_e, 3)
;_ArrayDisplay($sReturn)
MsgBox(0, 0, _ArrayToString($sReturn, @CRLF))
EndFunc ;==>_movieDownURL
Func _XmlHttp($Url) ;作者:Sanhen
Local $oHTTP, $sReturn
$oHTTP = ObjCreate("microsoft.xmlhttp")
$oHTTP.Open("get", $Url, False)
$oHTTP.Send()
$sReturn = BinaryToString($oHTTP.responseBody)
Return $sReturn
EndFunc ;==>_XmlHttp
|