So I'm doing some web-scraping, and I'm trying to download an image from an URL.
Here's my code:
import urllib
from urllib import request
urllib.request.urlretrieve(url, 'image.jpg')
I get 2 errors when I run this code:
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645)
urllib.error.URLError: urlopen error [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:645)>
Tried to look up answers on Google, nothing helped.
Thanks