Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Set oHTTP = CreateObject("Microsoft.XmlHttp")
  2. Set FSO = CreateObject("Scripting.FileSystemObject")
  3. oHTTP.Open "GET", "http://www.mediavida.com", False
  4. oHTTP.setRequestHeader "Cache-Control", "no-cache"
  5. oHTTP.Send ""
  6. MasterCode = oHTTP.ResponseText
  7. Set oHTTP = Nothing
  8.  
  9. Set F = FSO.CreateTextFile("output.htm", True)
  10. F.WriteLine MasterCode
  11. F.Close
  12.  
  13. buff = split(MasterCode, "<h4>")
  14.  
  15. For i = 1 to ubound(buff)
  16. cUrl = Split(buff(i), Chr(34))(1)
  17. cTit = Replace(Split(buff(i), ">")(1), "</a", "")
  18.  
  19. If Mid(cUrl, 1, 12) = "/foro/juegos" Then MsgBox "www.mediavida.com" & cUrl & vbCrLf & cTit
  20. Next
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement