Soup.CookieJarText¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
Cookie-storage filename |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Soup.CookieJarText(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Text-file-based (“cookies.txt”) Cookie Jar
Soup.CookieJarTextis a [class`CookieJar`] that reads cookies from and writes them to a text file in format similar to Mozilla’s “cookies.txt”.- classmethod new(filename, read_only)¶
- Parameters:
- Returns:
the new
Soup.CookieJar- Return type:
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 [signal`CookieJar`:py:func:::changed<Soup.CookieJarText.signals.changed>] signal is emitted from the jar. (If read_only isTrue, then the cookie jar will only be used for this session, and changes made to it will be lost when the jar is destroyed.)