CookieJarText#
Superclasses: CookieJar, Object
Implemented Interfaces: SessionFeature
Text-file-based (“cookies.txt”) Cookie Jar
SoupCookieJarText is a CookieJar that reads cookies from and writes
them to a text file in format similar to Mozilla’s “cookies.txt”.
Constructors#
- class CookieJarText
- classmethod new(filename: str, read_only: bool) → CookieJar#
- Creates a - SoupCookieJarText.- filenamewill be read in at startup to create an initial set of cookies. If- read_onlyis- False, then the non-session cookies will be written to- filenamewhen the- changedsignal is emitted from the jar. (If- read_onlyis- 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 
- read_only – - Trueif- filenameis read-only