I am learning how to use mechanize, a Python module to automate interacting with websites.
One feature is the automated handling of cookies. I would to want to dump cookies from a mechanize.Browser
instance for debugging purposes, but I can't seem to figure this out myself.
Just print the CookieJar Instance
Mykolas' answer almost gave me what I was looking for. I was looking for how to save the cookie to a file. Since this answer gives margin to dumping the cookie into a file, maybe it is going to be useful for other people coming here looking for that. To save the cookie to a file: