Open MitunTalapatra opened 2 years ago
Did you resolve this issue?
Hi @MitunTalapatra , I cannot reproduce the error: are you sure to have the correct library versions installed?
replace __get_driver function in googlemaps.py , with this:
def __get_driver(self, debug=False):
options = Options()
if not self.debug:
options.add_argument("--headless")
else:
options.add_argument("--window-size=1366,768")
options.add_argument("--disable-notifications")
options.add_argument("--lang=en-GB")
options.binary_location = "pathtochrome/Chrome/Application/chrome.exe"
input_driver = webdriver.Chrome(executable_path="pathtochromedrive/chromedriver.exe", options=options)
# click on google agree button so we can continue (not needed anymore)
# EC.element_to_be_clickable((By.XPATH, '//span[contains(text(), "I agree")]')))
input_driver.get(GM_WEBPAGE)
return input_driver
/googlemaps-scraper/googlemaps.py", line 314, in get_driver input_driver = webdriver.Chrome(executable_path=ChromeDriverManager(log_level=0).install(), options=options) TypeError: init__() got an unexpected keyword argument 'log_level'