我在pythonista上使用RoboBrowser,似乎无法正确提交此登录表单。每当我使用正确的登录信息提交时,都会返回相同的页面。唯一的区别是凭证现在位于登录表单内。在此先感谢您的帮助!
import re
from robobrowser import RoboBrowser
import time
browser = RoboBrowser(history=True)
browser.open('https://coparooms.newschool.edu/copa-scheduler/Web/?')
form = browser.get_forms()[0] #gets login form
form["email"].value="xxxxxxx"
form["password"].value="xxxxxxx"
link=(browser.parsed())
print(link)
#print source of page
browser.submit_form(form)
time.sleep(5)
print(browser.parsed())
#prints same source as before
print(browser.getforms()[0])
#prints login form again but this time with credentials.