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

Extensions and cookies #3

Closed markdrrr closed 3 years ago

markdrrr commented 3 years ago

'path_to_cookies_folder', what format should the file be and what should be specified in it? and this too 'path_to_extensions_folder' Help please

kkristof200 commented 3 years ago

Hey, It's a pickled format of the result of 'webdriver.Firefox.driver.get_cookies()' call. For more info check selenium_firefox

kkristof200 commented 3 years ago

For the cookies. You can also init a Youtube instance, and login manually, when prompted and the cookies will be saved in the provided 'path_to_cookies_folder'. 'path_to_extensions_folder' is a folder where you put all the extensions (for example ad blockers) that you want to load into selenium. These are firefox extensions of .xpi format. On mac you can check your downloaded extensions here ~/Application\ Support/Firefox/Profiles/[PROFILE_NAME]/extensions