robobrowser'NoneType'对象不支持项目分配

时间:2018-07-08 19:43:51

标签: python python-3.x robobrowser

import re
from robobrowser import RoboBrowser

email = 'example@gmail.com'
senha = '12342343'
br = RoboBrowser()
br.open("https://www.ifood.com.br/entrar/")
form = br.get_form()
form['email_login'] = email
form['password_login'] = senha
br.submit_form(form)

我需要登录方面的帮助,但总是会引发异常

Traceback (most recent call last):
  File "C:\Users\LUCAS\Desktop\ifood.py", line 11, in <module>
    form['email_login'] = email
TypeError: 'NoneType' object does not support item assignment

0 个答案:

没有答案