change default value of 'cookies-update' to 'true'

pull/511/head
Mike Fährmann 5 years ago
parent 07dafad26d
commit e17907ee2a
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -227,7 +227,7 @@ extractor.*.cookies-update
--------------------------
=========== =====
Type ``bool``
Default ``false``
Default ``true``
Description If `extractor.*.cookies`_ specifies a cookies.txt file, update its
contents with cookies received during data extraction.
=========== =====

@ -202,7 +202,7 @@ class Extractor():
def _store_cookies(self):
"""Store the session's cookiejar in a cookies.txt file"""
if self._cookiefile and self.config("cookies-update", False):
if self._cookiefile and self.config("cookies-update", True):
cookiejar = http.cookiejar.MozillaCookieJar()
for cookie in self._cookiejar:
cookiejar.set_cookie(cookie)

Loading…
Cancel
Save