我正在尝试使用库 Mechanize 登录。这是我运行时得到的输出
for f in br.forms():
print f
输出
<login_form1 POST https://www.box.com/login application/x-www-form-urlencoded
<TextControl(login=)>
<PasswordControl(password=)>
<HiddenControl(_pw_sql=) (readonly)>
<CheckboxControl(remember_login=[*on])>
<HiddenControl(__login=1) (readonly)>
<HiddenControl(reg_step=) (readonly)>
<HiddenControl(submit1=1) (readonly)>
<HiddenControl(folder=) (readonly)>
<HiddenControl(skip_framework_login=) (readonly)>
<HiddenControl(login_or_register_mode=login) (readonly)>
<HiddenControl(new_login_or_register_mode=) (readonly)>
<SubmitControl(<None>=) (readonly)>>
<google_apps_login_form POST https://www.box.com/sso/google_apps application/x-www-form-urlencoded
<TextControl(google_apps_domain=Enter Domain Name)>
<CheckboxControl(google_apps_non_enterprise=[on])>>
现在登录到我做的页面,
br.form['login']='USERNAME'
br.form['password']='PASSWORD'
但是响应仍然显示我还没有登录。
我在某个地方出错了吗?