0

WAP in python to get user input of url and then download the image?

12th Jan 2017, 11:11 AM
sid
2 odpowiedzi
0
import random import urllib.request def download_web_image(url): name = random.randrange(1, 1000) full_name = str(name) + ".jpg" urllib.request.urlretrieve(url, full_name) print(download_web_image("http://put.your.url/here.jpg"))
12th Jan 2017, 12:23 PM
Abbos Zayniddinov
Abbos Zayniddinov - avatar
0
i want to take input of url while program is running?
13th Jan 2017, 8:24 AM
sid