Python &引用;FormNotFoundError:没有与名称匹配的表单…”;机械化

Python &引用;FormNotFoundError:没有与名称匹配的表单…”;机械化,python,web-scraping,mechanize,Python,Web Scraping,Mechanize,这是我的密码: import mechanize br = mechanize.Browser() br.set_handle_robots(False) br.set_handle_refresh(False) br.addheaders = [('User-agent', 'Firefox')] fitchsite = "https://www.fitchratings.com/jsp/general/login/LoginController.faces" br.open(fitchs

这是我的密码:

import mechanize

br = mechanize.Browser()
br.set_handle_robots(False)
br.set_handle_refresh(False)
br.addheaders = [('User-agent', 'Firefox')]

fitchsite = "https://www.fitchratings.com/jsp/general/login/LoginController.faces"
br.open(fitchsite)

br.select_form(name="loginForm")
br.form["loginForm:userName"] = "my username"
br.form["loginForm:password"] = "my password"

r = br.submit()
s = r.read()

print s
我正试图登录惠誉的网站,但是得到了一个
formnotfounderror
,尽管该表单肯定在那里并且有上述名称