Warning (from warnings module):
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 56
config = yaml.load(open('config.yml', 'r+', encoding='utf-8').read())
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Warning (from warnings module):
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 93
open('cache/title.yml', 'r+', encoding='utf-8').read())
YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Traceback (most recent call last):
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 9, in getTitle
return titleList[prob]
KeyError: 'P1001'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\dell\Desktop\luogu-todolist-master\host.py", line 1, in
import spider, webserver
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 105, in
update()
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 95, in update
todo = getTodoList()
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 86, in getTodoList
prob.append(Todo(it))
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 50, in init
self.title = getTitle(prob)
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 16, in getTitle
' {prob} '.format(prob=prob))[1].split(' - 洛谷')[0]
IndexError: list index out of range
Warning (from warnings module): File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 56 config = yaml.load(open('config.yml', 'r+', encoding='utf-8').read()) YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
Warning (from warnings module): File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 93 open('cache/title.yml', 'r+', encoding='utf-8').read()) YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. Traceback (most recent call last): File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 9, in getTitle return titleList[prob] KeyError: 'P1001'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\dell\Desktop\luogu-todolist-master\host.py", line 1, in
import spider, webserver
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 105, in
update()
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 95, in update
todo = getTodoList()
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 86, in getTodoList
prob.append(Todo(it))
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 50, in init
self.title = getTitle(prob)
File "C:\Users\dell\Desktop\luogu-todolist-master\spider.py", line 16, in getTitle
' {prob} '.format(prob=prob))[1].split(' - 洛谷 ')[0]
IndexError: list index out of range