[cookies] add 'cookies-select' option
This commit is contained in:
@@ -527,6 +527,29 @@ Description
|
||||
["chromium", "Private", "kwallet", null, ".twitter.com"]
|
||||
|
||||
|
||||
extractor.*.cookies-select
|
||||
--------------------------
|
||||
Type
|
||||
``string``
|
||||
Default
|
||||
``"random"``
|
||||
Description
|
||||
Interpret `extractor.cookies <extractor.*.cookies_>`__
|
||||
as a list of cookie sources and select one of them for each extractor run.
|
||||
|
||||
* ``"random"``: Select cookies `randomly <https://docs.python.org/3.10/library/random.html#random.choice>`__
|
||||
* ``"rotate"``: Select cookies in sequence. Start over from the beginning after reaching the end of the list.
|
||||
|
||||
.. code:: json
|
||||
|
||||
[
|
||||
"~/.local/share/cookies-instagram-com-1.txt",
|
||||
"~/.local/share/cookies-instagram-com-2.txt",
|
||||
"~/.local/share/cookies-instagram-com-3.txt",
|
||||
["firefox", null, null, "c1", ".instagram-com"],
|
||||
]
|
||||
|
||||
|
||||
extractor.*.cookies-update
|
||||
--------------------------
|
||||
Type
|
||||
|
||||
Reference in New Issue
Block a user