#include <String.au3>
Local $Url = "http://www.80s.cn/MovieDownloadsSubMod.aspx?formatid=2&movieid=16379"
Local $InetRead = InetRead($Url), $_Title, $_StrSplt, $i, $_temp, $_temp1, $_String
If $InetRead <> "" Then $InetRead = BinaryToString($InetRead, 4)
$_Title = _StringBetween($InetRead, "<h2>", "</h2>")
If IsArray($_Title) Then $_Title = StringReplace($_Title[0], "下载页面", "")
$_String &= $_Title & @CRLF
$_StrSplt = _StringBetween($InetRead, '<a href="#"', "</a>")
If IsArray($_StrSplt) Then
For $i = 0 To UBound($_StrSplt) - 1
$_temp = _StringBetween($_StrSplt[$i], "/>" & @CRLF, ")")
If IsArray($_temp) Then $_temp = StringStripWS($_temp[0], 8) & ")"
$_temp1 = _StringBetween($_StrSplt[$i], 'onclick="FlashgetDown(', ",'80410');return false;")
If IsArray($_temp1) Then $_temp1 = $_temp1[0]
$_String &= $_temp & " : " & $_temp1 & @CRLF
Next
EndIf
FileWrite("test.txt", $_String)
MsgBox(0, "", $_String)
用正则也可以. |