我希望使用Python Mechanize自动登录Instagramlogin,但是我得到一个错误"No form matching nr=0"
,这是我的代码。在
import mechanize
br = mechanize.Browser()
br.set_handle_robots(False)
response = br.open("http://www.instagram.com/accounts/login)
br.select_form(nr = 0)
br.form["username"] = "[my username]"
br.form["password"] = "[my password]"
br.method = "POST"
response = br.submit()
有人知道我怎么解决这个问题吗?表单没有名称,因此无法手动输入名称。在
相关问题 更多 >
编程相关推荐