我正在尝试使用 python 脚本为我的同学自动化一个过程,该脚本从我的大学服务器下载我们通过下载 PDF 获得的分数。不幸的是,事实证明在运行此代码时出现错误:
from twill.commands import *
go('https://login.unice.fr/login?service=http://ent.unice.fr/uPortal/Login')
ids = {}
ids["username"] = "my_username" # I hid it
ids["password"] = "my_password" # I hid it too
fv("1", "username", ids["username"])
fv("1", "password", ids["password"])
submit("submit")
我收到错误消息
No connection adapters were found for '/login;jsessionid=(token_i_hid)?service=http://ent.unice.fr/uPortal/Login'
我是斜纹新手。如果有任何其他选择可以做我想做的事,我会毫不犹豫地接受它。但是修复我的代码有什么问题会很好
先感谢您。