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

WebDriver.__init__() got an unexpected keyword argument 'executable_path' #176

Open
vizcodes opened this issue Nov 18, 2023 · 3 comments
Open

Comments

@vizcodes
Copy link

vizcodes commented Nov 18, 2023

When trying to use the scrape function, I'm facing and type error, is this due to different version of packages?
ss

@siiyayu
Copy link

siiyayu commented Dec 13, 2023

https://stackoverflow.com/questions/76550506/typeerror-webdriver-init-got-an-unexpected-keyword-argument-executable-p

Same issue

Upd: reinstallation of the selenium library has helped. Don't forget to check the requirements file for the right version.

@Justinjay282
Copy link

Justinjay282 commented Feb 25, 2024

I encountered this issue and go to this link commented by @siiyayu. All answers mentioned point out to "selenium updated version executable_path was removed". I solve this by directly editing the Scweet/utils.py:
from:

driver = webdriver.Chrome(options=options, executable_path=driver_path)

to

service = Service(executable_path=driver_path)
driver = webdriver.Chrome(options=options, service=service)

I am not mistaken, this is line 167.

@nadip07
Copy link

nadip07 commented Mar 9, 2024

i get NameError: name 'Service' is not defined.

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