Soup.CookieJarDB

g GObject.GInterface GObject.GInterface Soup.SessionFeature Soup.SessionFeature GObject.GInterface->Soup.SessionFeature GObject.Object GObject.Object Soup.CookieJar Soup.CookieJar GObject.Object->Soup.CookieJar Soup.CookieJarDB Soup.CookieJarDB Soup.CookieJar->Soup.CookieJarDB Soup.SessionFeature->Soup.CookieJar

Subclasses:None

Methods

Inherited:Soup.CookieJar (15), GObject.Object (37), Soup.SessionFeature (5)
Structs:GObject.ObjectClass (5)
class new (filename, read_only)

Properties

Inherited:Soup.CookieJar (2)
Name Type Flags Short Description
filename str r/w/co Cookie-storage filename

Fields

Inherited:Soup.CookieJar (1), GObject.Object (1)
Name Type Access Description
parent Soup.CookieJar r  

Class Details

class Soup.CookieJarDB(**kwargs)
Bases:Soup.CookieJar
Abstract:No
Structure:Soup.CookieJarDBClass
classmethod new(filename, read_only)
Parameters:
  • filename (str) – the filename to read to/write from, or None
  • read_only (bool) – True if filename is read-only
Returns:

the new Soup.CookieJar

Return type:

Soup.CookieJar

Creates a Soup.CookieJarDB.

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.)

New in version 2.42.

Property Details

Soup.CookieJarDB.props.filename
Name:filename
Type:str
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

Cookie-storage filename