diff --git a/chromedriver_binary/utils.py b/chromedriver_binary/utils.py index 8868a80..be90bb3 100644 --- a/chromedriver_binary/utils.py +++ b/chromedriver_binary/utils.py @@ -5,6 +5,7 @@ import sys import os +import ssl import subprocess import re import platform @@ -91,7 +92,7 @@ def get_latest_release_for_version(version=None): if version: release_url += '_{}'.format(version) try: - response = urlopen(release_url) + response = urlopen(release_url, context=ssl.SSLContext(protocol=ssl.PROTOCOL_TLS)) if response.getcode() != 200: raise URLError('Not Found') return response.read().decode('utf-8').strip() diff --git a/setup.py b/setup.py index 8426499..368cf47 100644 --- a/setup.py +++ b/setup.py @@ -3,6 +3,7 @@ from chromedriver_binary.utils import get_chromedriver_filename, get_chromedriver_url, find_binary_in_path, check_version import os +import ssl import zipfile try: @@ -41,7 +42,7 @@ def run(self): os.mkdir(chromedriver_dir) url = get_chromedriver_url(version=chromedriver_version) try: - response = urlopen(url) + response = urlopen(url, context=ssl.SSLContext(protocol=ssl.PROTOCOL_TLS)) if response.getcode() != 200: raise URLError('Not Found') except URLError: @@ -58,7 +59,7 @@ def run(self): setup( name="chromedriver-binary", - version="108.0.5359.71.0", + version="108.0.5359.71.1", author="Daniel Kaiser", author_email="daniel.kaiser94@gmail.com", description="Installer for chromedriver.",