Soup.CookieJarText

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.CookieJarText Soup.CookieJarText Soup.CookieJar->Soup.CookieJarText 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)

Virtual Methods

Inherited:

Soup.CookieJar (3), GObject.Object (7), Soup.SessionFeature (8)

Properties

Inherited:

Soup.CookieJar (2)

Name

Type

Flags

Short Description

filename

str

r/w/co

Cookie-storage filename

Signals

Inherited:

Soup.CookieJar (1), GObject.Object (1)

Fields

Inherited:

Soup.CookieJar (1), GObject.Object (1)

Name

Type

Access

Description

parent

Soup.CookieJar

r

Class Details

class Soup.CookieJarText(**kwargs)
Bases:

Soup.CookieJar

Abstract:

No

Structure:

Soup.CookieJarTextClass

classmethod new(filename, read_only)
Parameters:
  • filename (str) – the filename to read to/write from

  • read_only (bool) – True if filename is read-only

Returns:

the new Soup.CookieJar

Return type:

Soup.CookieJar

Creates a Soup.CookieJarText.

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

Property Details

Soup.CookieJarText.props.filename
Name:

filename

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Cookie-storage filename