Python Mechanize response on submit

1.6k views Asked by At

I'm trying to fill a form and print its response page in Mechanize, but when I use browser.reponse(), I get the response

<response_seek_wrapper at 0x21f0648 whose wrapped object = <closeable_response at 0x21fc3a0 whose fp = <socket._fileobject object at 0x021EDD70>>>

How do I print the html that I get as a response?

1

There are 1 answers

0
Quentin THEURET On BEST ANSWER

I think browser.response().read() will return that you expected.

Source : http://www.pythonforbeginners.com/cheatsheet/python-mechanize-cheat-sheet