Advertisement
Guest User

Untitled

a guest
Nov 8th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. import subprocess
  2. import re
  3. x = 1
  4. while x < 635:
  5. url = "http://cloveros.booru.org/index.php?page=post&s=view&id=" + str( x )
  6. source = str( subprocess.run(['curl', url], stdout=subprocess.PIPE).stdout )
  7. s2 = re.search("http.{50,100}png", source)
  8. if(s2):
  9. subprocess.run(['wget', s2[0]])
  10. x+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement