This question has already been answered:
You need to download the picture and save it via a direct link to it using python
Python 3.5 is used.
This question has already been answered:
You need to download the picture and save it via a direct link to it using python
Python 3.5 is used.
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
>>> from urllib.request import urlretrieve >>> urlretrieve('http://i.imgur.com/viibQ1r.jpg', 'C://users/user/desktop/lol.png') ('C://users/user/desktop/lol.png', <http.client.HTTPMessage object at 0x01BB6130>) Or so:
>>> from urllib.request import urlopen >>> with open('C://Users/User/Desktop/new_img.png', 'wb') as img: ... img.write(urlopen('http://i.imgur.com/viibQ1r.jpg').read()) Source: https://ru.stackoverflow.com/questions/699394/
All Articles