aprikyan / google-books-downloader

An open-source utility to scrape Google Books
MIT License
69 stars 15 forks source link

cannot find chrome binary #7

Closed liukliukliuk closed 3 years ago

liukliukliuk commented 3 years ago

message: unknown error: cannot find chrome binary

aprikyan commented 3 years ago

Chrome binary is the "chrome.exe" executable which you run when opening your local Chrome. To solve the issue, try the following:

  1. Ensure that you have Google Chrome installed on your computer.
  2. If you do, find the address of the "chrome.exe" executable. On my PC, it is stored in "C:\Program Files (x86)\Google\Chrome\Application".
  3. In gbd.py, on line 240 after chrome_options = Options() add the following line: chrome_options.binary_location = r"PATH_TO_CHROME.EXE" or, as in my case, chrome_options.binary_location = r"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
liukliukliuk commented 3 years ago

now i get this… image

georgetian3 commented 3 years ago

now i get this… image

This issue can be fixed by replacing chromedriver.exe with an updated version found here.