kkristof200 / selenium_youtube

Python library to upload videos to YouTube (also watch, like, comment, pin comment) using Selenium.
MIT License
66 stars 23 forks source link

unexpected keyword argument 'firefox_options' #9

Closed salihgencer closed 1 year ago

salihgencer commented 2 years ago

selenium_browser/selenium_browser.py", line 62, in init self.driver = webdriver_class(**webdriver_kwargs) TypeError: init() got an unexpected keyword argument 'firefox_options'

how can i solve this error?

kkristof200 commented 2 years ago

Please paste your code too and the whole stacktrace.

JoyQu commented 2 years ago

Traceback (most recent call last): File "F:\work\pythonProject\auup.py", line 5, in firefox = Firefox() File "E:\software\python\Python39\lib\site-packages\selenium_firefox\firefox.py", line 94, in init super().init( File "E:\software\python\Python39\lib\site-packages\selenium_browser\selenium_browser.py", line 62, in init self.driver = webdriver_class(**webdriver_kwargs) TypeError: init() got an unexpected keyword argument 'firefox_options'

JoyQu commented 2 years ago

the same question

PPBWoodBoy commented 2 years ago

its because of the selenium version (selenium==4.0.0b4) in the requirements. The way the "firefox_options" where handled, was deprecated in selenium version 3.8.0

So what version to use?

kkristof200 commented 1 year ago

Updated. Please check 2.0.31