额 恶补- set ie = createobject("internetexplorer.application")
- ie.visible = false
- ie.navigate "http://www.bathome.net"
- do until ie.readystate = 4
- wscript.sleep 200
- loop
- Set FSO=CreateObject("Scripting.FilesystemObject")
- DIM N,S,var
- for i = 0 to 47 step 2
- N = i \ 16
- if i MOD 16 = 0 Then
- var = var & "[" & ie.document.getElementById("homegrids_t_" & N + 1).outerText & "]" & vbcr & vblf
- End If
- if N <> 0 Then
- Str = "主题:" & ie.document.links(i+28).innertext & " " & "最新回复:"
- ELSE Str = "主题:" & ie.document.links(i+28).innertext & " " &"发帖ID:"
- End If
- var= var & str & ie.document.links(i+27).outerText & " " & "URL:" & ie.document.links(i+28).href & vbcr & vblf
- Next
- FSO.OpenTextFile("Rult.txt",2,True).WriteLine var
- ie.quit
- Set ie = Nothing
复制代码
|