linouk23 / youtube_uploader_selenium

Python script to upload videos on YouTube using Selenium
MIT License
612 stars 211 forks source link

got an unexpected keyword argument 'firefox_profile' #86

Open schnaps1981 opened 1 year ago

schnaps1981 commented 1 year ago

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

aaronse commented 1 year ago

Ran into similar. Updated my requirements.txt with...

selenium_firefox==2.0.8 selenium==4.0.0

Then...

pip install -r requirements.txt

(Firefox 117, Win 10, WebDriver)

So, got further, but currently hitting YouTube sign-in issue. Am searching through other open/closed issues to figure out how to progress to the next blocker LOL...

FujiwaraChoki commented 8 months ago

Found a solution, had to manually go to selenium_firefox/firefox.py, search for profile, and came upon this:

profile = webdriver.FirefoxProfile()

Just added the location of my profile between the braces, like this:

profile = webdriver.FirefoxProfile("C:\\Users\\YourUsername\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\YourProfile")
steve3j commented 8 months ago

include your profile path in the startup command:

--profile 'C:/users/'username'/appdata/roaming/mozilla/firefox/profiles/xxxx.default-release'

lijianfeigeek commented 2 months ago

pip uninstall selenium pip install selenium==4.9.0