woob.browser.cookies

class WoobCookieJar(policy=None)[source]

Bases: RequestsCookieJar

classmethod from_cookiejar(cj)[source]

Create a WoobCookieJar from another CookieJar instance.

export(filename)[source]

Export all cookies to a file, regardless of expiration, etc.

copy()[source]

Return an object copy of the cookie jar.

class BlockAllCookies[source]

Bases: CookiePolicy

return_ok(*args, **kwargs)

Return true if (and only if) cookie should be returned to server.

set_ok(*args, **kwargs)

Return true if (and only if) cookie should be accepted from server.

Currently, pre-expired cookies never get this far – the CookieJar class deletes such cookies itself.

domain_return_ok(*args, **kwargs)

Return false if cookies should not be returned, given cookie domain.

path_return_ok(*args, **kwargs)

Return false if cookies should not be returned, given cookie path.

netscape = True
rfc2965 = False
hide_cookie2 = False