Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import subprocess
- import re
- x = 1
- while x < 635:
- url = "http://cloveros.booru.org/index.php?page=post&s=view&id=" + str( x )
- source = str( subprocess.run(['curl', url], stdout=subprocess.PIPE).stdout )
- s2 = re.search("http.{50,100}png", source)
- if(s2):
- subprocess.run(['wget', s2[0]])
- x+=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement