http.cookiejar.FileCookieJar.load()

FileCookieJar.load(filename=None, ignore_discard=False, ignore_expires=False)

Load cookies from a file.

Old cookies are kept unless overwritten by newly loaded ones.

Arguments are as for save().

The named file must be in the format understood by the class, or LoadError will be raised. Also, OSError may be raised, for example if the file does not exist.

Changed in version 3.3: IOError used to be raised, it is now an alias of OSError.

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

Please login to continue.