-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enchancement] Get cookies directly from web browsers #1606
Comments
My immediate reaction here was "Well, cookies are usually stored in encrypted form in the browser..." But yeah, seems the PR already handles this. And based on the feedback there, seems to work. |
most of the code is adapted from yt-dlp's implementation and *should* work the same.
This feature got finally implemented in 6742f3b and should work exactly like it does in yt-dlp. I've only been able to test this with Firefox and Chromium on Linux, so please let me know if you find bugd on other platforms. |
- fix Popen.communicate() calls - move and simplify _process_chrome_cookie() code - remove random print() statement and config dict
It doesn't seem to recognize I'm on 1.22.0 Edit: Turns out |
@mikf The command-line argument is |
(I got the idea from this comment in #1276)
There's a pull request on youtube-dl that implements getting cookies directly from the browser. It might be possible to adapt some of the code for gallery-dl to avoid needing to export cookies with a browser extension
It's also worth mentioning that the pull request on ytdl has support for specifying the web browser profile with
browser:profilename
orbrowser:path/to/profile
The text was updated successfully, but these errors were encountered: