-
Notifications
You must be signed in to change notification settings - Fork 356
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
TypeError: WebDriver.__init__() got an unexpected keyword argument 'executable_path' #133
Comments
same issue... |
I encountered the same issue and spent several hours devising a solution. Here's what I did to make it work:
After these steps, I was able to successfully execute my Scrapy spider. |
Works from me. |
Because of the new Selenium version the executable_path has been deprecated, and now it should pass in a Service object.
|
What @turkievicz said and this happened in v4.10.0 of Selenium, so one alternative is to just downgrade Selenium specifically to 4.9.1 and it should work again. |
Hi. I've made a naive fix in https://github.com/jogobeny/scrapy-selenium. You may use it as: pip install git+https://github.com/jogobeny/scrapy-selenium |
Thanks a lot! I use selenium=4.22.0 and it really works for me. |
Ubuntu 22.04.3 LTS (Jammy Jellyfish) ARM64
Selenium 4.10.0
scrapy-selenium 0.0.7
Mozilla Firefox 115.0.2
geckodriver 0.33.0 ( 2023-07-11)
Configured as description, get error TypeError: WebDriver.init() got an unexpected keyword argument 'executable_path'
My spider.py
spider.py
import scrapy
from quotes_js_scraper.items import QuoteItem
from scrapy_selenium import SeleniumRequest
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
class QuotesSpider(scrapy.Spider):
name = 'quotes'
The text was updated successfully, but these errors were encountered: