There is a Python mechanization object with a form with almost all set values, but not yet presented. Now I want to extract another page using cookies from a Mechanicalize instance, but without resetting the page, forms, etc., for example. so that the values remain set (I just need to get the body line of another page, nothing more). So there is a way:
- Tell me to mechanize not reset the page (maybe through
UserAgentBase)? - Make
urllib2use the forge mechanize cookie? NB: urllib2.HTTPCookieProcessor(self.br._ua_handlers["_cookies"].cookiejar)not working. - Any other way to pass cookies to
urllib?
source
share