I’m trying to login to a login.live.com, but Mechanize will not recognize that there is a form on that page. Does anyone have any suggestions?
br=mechanize.Browser()
br.open('https://login.live.com/')
br.select_form(nr=0)
This results in:
mechanize._mechanize.FormNotFoundError: no form matching nr 0
When there clearly is a form on that page.
Try getting the form by name instead with
br.select_form(name="f1").(I got the form name from the page source – I assume you want the login form.)