add example to 'cookies' docs

pull/644/head
Mike Fährmann 5 years ago
parent c7cf9dd111
commit ab13f81fd7
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -225,12 +225,21 @@ extractor.*.cookies
=========== =====
Type |Path|_ or ``object``
Default ``null``
Description Source to read additional cookies from.
Description Source to read additional cookies from. Either as
* the |Path|_ to a Mozilla/Netscape format cookies.txt file or
* a JSON ``object`` specifying cookies as a name-to-value mapping
Example:
.. code::
{
"cookie-name": "cookie-value",
"sessionid" : "14313336321%3AsabDFvuASDnlpb%3A31",
"isAdult" : "1"
}
* If this is a |Path|_, it specifies a
Mozilla/Netscape format cookies.txt file.
* If this is an ``object``, its key-value pairs, which should both
be ``strings``, will be used as cookie-names and -values.
=========== =====
@ -239,8 +248,9 @@ extractor.*.cookies-update
=========== =====
Type ``bool``
Default ``true``
Description If `extractor.*.cookies`_ specifies a cookies.txt file, update its
contents with cookies received during data extraction.
Description If `extractor.*.cookies`_ specifies the |Path|_ to a cookies.txt
file and it can be opened and parsed without errors,
update its contents with cookies received during data extraction.
=========== =====

Loading…
Cancel
Save