Advertisement
skip420

scrapeIMG

Aug 30th, 2022
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import urllib2
  2. response = urllib2.urlopen('https://upload.wikimedia.org/wikipedia/commons/thumb/f/f8/Python_logo_and_wordmark.svg/260px-Python_logo_and_wordmark.svg.png')
  3. data = response.read()
  4. filename = "image.png"
  5. file_ = open(filename, 'w')
  6. file_.write(data)
  7. file_.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement