CookieJarDB

class CookieJarDB(**properties: Any)

Superclasses: CookieJar, Object

Implemented Interfaces: SessionFeature

Constructors:

CookieJarDB(**properties)
new(filename:str, read_only:bool) -> Soup.CookieJar

Constructors

class CookieJarDB
classmethod new(filename: str, read_only: bool) CookieJar

Creates a SoupCookieJarDB.

filename will be read in at startup to create an initial set of cookies. If read_only is False, then the non-session cookies will be written to filename when the changed signal is emitted from the jar. (If read_only is True, then the cookie jar will only be used for this session, and changes made to it will be lost when the jar is destroyed.)

Parameters:
  • filename – the filename to read to/write from, or None

  • read_onlyTrue if filename is read-only

Properties

class CookieJarDB
props.filename: str

Cookie-storage filename.