ClientCookie
John J. Lee
jjl at pobox.com
Wed Aug 11 18:38:18 EDT 2004
fuzzyman at gmail.com (Michael Foord) writes:
> Has anyone used ClientCookie to store cookies ?
> I'm going to play around with 'pickling cookies' - but I wondered if
> anyone had any experience of this.
[...]
There shouldn't be any problem with that. You can pickle the
CookieJar itself, or the cookies inside it ([c for c in cookiejar] --
and use .set_cookie() to get them back into a new CookieJar).
May I suggest instead using cookielib, from Python CVS? (note that
POSTs with urllib2 are broken in 2.4a2, so don't use that)
cookielib is a new module in 2.4, and is a cleaned-up version of the
cookie-handling parts of ClientCookie.
John
More information about the Python-list
mailing list