import urllib.request, urllib.parse, urllib.error
URL = 'http://www.smellymonkey.com/monkeys/images/ill-monkey.gif'
u = urllib.request.urlopen(URL)
raw_data = u.read()
u.close()
Python 3- How to retrieve an image from the web and display in a GUI using TKINTER?