Closed dostoevskylabs closed 6 years ago
changed line
sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
with
sslcontext = ssl.SSLContext(ssl.PROTOCOL_TLSv1_2)
to support tlsv1.2 which some websites force and would result in the error
Error: invalid input defined or SSL error: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645)>
changed line
with
to support tlsv1.2 which some websites force and would result in the error