+ 3

How can I download files from the internet in python?

I need it for a project

4th Apr 2018, 7:48 PM
1337 H4x0r
1337 H4x0r - avatar
2 Answers
+ 2
Thank you, much appreciated !â˜ș
4th Apr 2018, 7:59 PM
1337 H4x0r
1337 H4x0r - avatar
0
import urllib.request url = 'http://i3.ytimg.com/vi/J---aiyznGQ/mqdefault.jpg' urllib.request.urlretrieve(url, '/Users/scott/Downloads/cat.jpg')
4th Apr 2018, 7:58 PM
Bartosz Pieszko
Bartosz Pieszko - avatar