0
WAP in python to get user input of url and then download the image?
2 Antworten
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"))
0
i want to take input of url while program is running?