-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法获取cookie #1
Comments
学校的教务处在上学期期末升级了呀,我这个代码是很早之前的,所以失效了吧,最近事情太多,也没有来的及维护 |
ok,谢谢了 |
Jan 16, 2022 突然诈尸更新,添加了[成都理工大学]本地课表解析导出的功能,解决了无法登录教务处的问题 |
temp = [<urllib.request.Request object at 0x0000020743EC6190>, <CookieJar[]>]
Traceback (most recent call last):
File "D:/Pycharm/StudentSchedule-main/StudentSchedule/StudentSchedule/StudentSchedule.py", line 144, in
html=mainFuction(LoginURL,URL,username,password)
File "D:\Pycharm\StudentSchedule-main\StudentSchedule\StudentSchedule\theSpider.py", line 99, in mainFuction
html=GetHtml(LoginURL,URL,username,password)
File "D:\Pycharm\StudentSchedule-main\StudentSchedule\StudentSchedule\theSpider.py", line 68, in GetHtml
resp = opener.open(req)
File "D:\Anaconda\envs\py38\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "D:\Anaconda\envs\py38\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "D:\Anaconda\envs\py38\lib\urllib\request.py", line 569, in error
return self._call_chain(*args)
File "D:\Anaconda\envs\py38\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "D:\Anaconda\envs\py38\lib\urllib\request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 412: Precondition Failed
为何temp中保存的cookie没有值
The text was updated successfully, but these errors were encountered: