authomatic / chromedriver_installer

ChromeDriver installer for Python
15 stars 34 forks source link

Fix version pull logic #10

Closed pgAdmin closed 4 years ago

S-Cardenas commented 5 years ago

@NickGrantONS @peterhudec @pgAdmin Can you please approve the merge or make the necessary changes to allow the fix to be implemented?

S-Cardenas commented 5 years ago

@pgAdmin You have to check decode the response you get from google because it is returned in bytes.

    try:
        response = request.urlopen(CHROMEDRIVER_LATEST_RELEASE_URL)
        content = response.read()
        return str(content.decode())