A version of Python's MozillaCookieJar that produces cookies.txt files that are compatible with curl/wget.
MozillaCookieJar is a great idea. It just doesn't work well right now without this patch. So, I've applied the patch here.
Use it like you would use MozillaCookieJar.
from cookiestxt import MozillaCookieJar
cj = MozillaCookieJar()
...