Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unexpected keyword argument 'log_level' #28

Open
MitunTalapatra opened this issue May 26, 2022 · 3 comments
Open

unexpected keyword argument 'log_level' #28

MitunTalapatra opened this issue May 26, 2022 · 3 comments
Assignees

Comments

@MitunTalapatra
Copy link

/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'

@LittleBennos
Copy link

Did you resolve this issue?

@gaspa93
Copy link
Owner

gaspa93 commented Dec 3, 2022

Hi @MitunTalapatra ,
I cannot reproduce the error: are you sure to have the correct library versions installed?

@abrillo2
Copy link

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

@gaspa93 gaspa93 self-assigned this Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants