woob.browser.cookies

class woob.browser.cookies.BlockAllCookies

Bases: http.cookiejar.CookiePolicy

domain_return_ok(*args, **kwargs)

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

hide_cookie2 = False
netscape = True
path_return_ok(*args, **kwargs)

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

return_ok(*args, **kwargs)

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

rfc2965 = False
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.

class woob.browser.cookies.WoobCookieJar(policy=None)

Bases: requests.cookies.RequestsCookieJar

copy()

Return an object copy of the cookie jar.

export(filename)

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

classmethod from_cookiejar(cj)

Create a WoobCookieJar from another CookieJar instance.