implement --cookies-from-browser (#1606)
most of the code is adapted from yt-dlp's implementation and *should* work the same.
This commit is contained in:
@@ -399,16 +399,19 @@ Description
|
||||
extractor.*.cookies
|
||||
-------------------
|
||||
Type
|
||||
|Path|_ or ``object``
|
||||
|Path|_ or ``object`` or ``list``
|
||||
Default
|
||||
``null``
|
||||
Description
|
||||
Source to read additional cookies from. Either as
|
||||
Source to read additional cookies from. This can be
|
||||
|
||||
* the |Path|_ to a Mozilla/Netscape format cookies.txt file or
|
||||
* a JSON ``object`` specifying cookies as a name-to-value mapping
|
||||
* The |Path|_ to a Mozilla/Netscape format cookies.txt file
|
||||
|
||||
Example:
|
||||
.. code:: json
|
||||
|
||||
"~/.local/share/cookies-instagram-com.txt"
|
||||
|
||||
* An ``object`` specifying cookies as name-value pairs
|
||||
|
||||
.. code:: json
|
||||
|
||||
@@ -418,6 +421,17 @@ Description
|
||||
"isAdult" : "1"
|
||||
}
|
||||
|
||||
* A ``list`` with up to 3 entries specifying a browser profile.
|
||||
|
||||
* The first entry is the browser name
|
||||
* The optional second entry is a profile name or an absolote path to a profile directory
|
||||
* The optional third entry is the keyring to retrieve passwords for decrypting cookies from
|
||||
|
||||
.. code:: json
|
||||
|
||||
["firefox"]
|
||||
["chromium", "Private", "kwallet"]
|
||||
|
||||
|
||||
extractor.*.cookies-update
|
||||
--------------------------
|
||||
|
||||
Reference in New Issue
Block a user