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