soraxas / echo360

Commandline tool for automated downloads of echo360 videos hosted by university
https://cs.tinyiu.com/echo360
MIT License
261 stars 51 forks source link

Use cookies for authentication #82

Open hongfeiyang opened 6 months ago

hongfeiyang commented 6 months ago

Is it possible to save a copy of the cookies and inject it to chrome driver whenever a new chrome instance gets launched ? Having to type in password everytime, espicially having to pass a 2FA in some cases is just too tedious.

soraxas commented 6 months ago

Yes definitely possible; you can store cookies and add cookies (in subsequent session) with selenium: https://www.selenium.dev/documentation/webdriver/interactions/cookies/

I'm happy to accept PR, but I'm not using this module so I won't be working on this.