Advertisement
rg443

wallpaperscraft vbscript

Mar 7th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Option Explicit
  2.  
  3. dim r:set r=CreateObject("MSXML2.ServerXMLHTTP.6.0")
  4.  
  5. wallpaperscraft
  6.  
  7. Sub wallpaperscraft()
  8. dim i,re,mc,m
  9. set re=new RegExp
  10. re.Global=True
  11. re.MultiLine=True
  12. ' re.Pattern="http://wallpaperscraft.com/image/.*?.jpg"
  13. re.Pattern="(http://wallpaperscraft.com/image/.*?.jpg)"" alt=""(.*?)""[\W\w]*?(\d+x\d+)"
  14.  
  15. for i=1 to 5345
  16. r.open "GET","http://wallpaperscraft.com/all/page" & i, true
  17. r.send
  18. r.WaitForResponse
  19. ' WScript.Echo r.getOption(-1),r.getAllResponseHeaders
  20. set mc=re.Execute(r.responseText)
  21. WScript.Echo mc.count
  22. for each m in mc
  23. WScript.Echo replace(m.SubMatches(0),"_preview","_" & m.SubMatches(2)) & vbTab & m.SubMatches(1)
  24. next
  25. next
  26.  
  27. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement