I am following this tutorial and getting stuck with this error:
Traceback (most recent call last):
File "/PycharmProjects/YouTube/Beer.py", line 2, in <module>
import urllib.request
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 44
`Parse list of key=value strings where keys are not duplicated.`
I am new to programming and to Python anyone have an idea what the issue is? Please be nice its my first time asking on Stack!
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)
download_web_image(`https://avatars2.githubusercontent.com/u/8547538?s=460&u=8a4be84ff4870a332fe94c11fca02b432fb9f83e&v=4`)
download_web_image(seems to be somewhat broken, can you clarify what the code actually looks like?