oseymour / ScraperFC

Python package for scraping soccer data from a variety of sources
GNU General Public License v3.0
222 stars 49 forks source link

TypeError: WebDriver.__init__() got an unexpected keyword argument 'service' #19

Closed NADoebler closed 1 year ago

NADoebler commented 1 year ago

Question: When trying to initiate the FBref class, I get the following error:

TypeError: WebDriver.init() got an unexpected keyword argument 'service'

I have Selenium Version 4.8 installed.

oseymour commented 1 year ago

Hey @NADoebler! Can you give me some more info? Is this your first time using ScraperFC or have you been able to use it successfully in the past? Are you running it on a local or remote machine? Any details you can provide will help me troubleshoot this.

NADoebler commented 1 year ago

Thanks for reaching back. I am running it locally, and have used it sucessfully in the past.

oseymour commented 1 year ago

@NADoebler did you find a fix for this? Sorry I didn't reach back out. I had no clue what could be going wrong.

PascalCeccaldi commented 1 year ago

I had the same issue with Selenium 3.x Issue solved with clean environment + Selenium 4.9.0.

oseymour commented 1 year ago

Hey @PascalCeccaldi! Yeah I thought this "service argument" error was a Selenium 3 issue. But @NADoebler said they were on Selenium 4.8. I'm going to close this issue for now. Feel free to re-open in the future!