1

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 Answer 1

3

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

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.