http.cookiejar.MozillaCookieJar

class http.cookiejar.MozillaCookieJar(filename, delayload=None, policy=None)

A FileCookieJar that can load from and save cookies to disk in the Mozilla cookies.txt file format (which is also used by the Lynx and Netscape browsers).

Note

This loses information about RFC 2965 cookies, and also about newer or non-standard cookie-attributes such as port.

Warning

Back up your cookies before saving if you have cookies whose loss / corruption would be inconvenient (there are some subtleties which may lead to slight changes in the file over a load / save round-trip).

Also note that cookies saved while Mozilla is running will get clobbered by Mozilla.

doc_python
2016-10-07 17:34:07
Comments
Leave a Comment

Please login to continue.