Python Mechanize响应为空

时间:2017-10-29 17:48:14

标签: python-2.7 mechanize mechanize-python

我需要响应才能让Python决定接下来要做什么,但响应一直是空的。可能是什么问题?

import mechanize

br = mechanize.Browser()
br.set_handle_robots(False)

br.open("https://www.facebook.com/login/identify?ctx=recover&lwv=110")
br.select_form(nr=1)
br.form["email"] = "test@gmail.com"
br.submit()
response = br.response().read()
print response

提前致谢!

0 个答案:

没有答案