https://xxxxxxxxxxx.lofter.com/post/xxxxxxxxx
Traceback (most recent call last):
File "/Users/jreen/lofter_crawler-master/tool/crawler.py", line 33, in < module >
save_tag(cfg, str(tag))
File "/Users/jreen/lofter_crawler-master/tool/../lib/user_pigeonhole.py", line 227, in save_tag
_capture_blog(single_header, url, hot, cfg)
File "/Users/jreen/lofter_crawler-master/tool/../lib/user_pigeonhole.py", line 135, in _capture_blog
tag_list = tag_pattern.findall(html)[0].split(',')
IndexError: list index out of range
代码如下
https://xxxxxxxxxxx.lofter.com/post/xxxxxxxxx Traceback (most recent call last): File "/Users/jreen/lofter_crawler-master/tool/crawler.py", line 33, in < module > save_tag(cfg, str(tag)) File "/Users/jreen/lofter_crawler-master/tool/../lib/user_pigeonhole.py", line 227, in save_tag _capture_blog(single_header, url, hot, cfg) File "/Users/jreen/lofter_crawler-master/tool/../lib/user_pigeonhole.py", line 135, in _capture_blog tag_list = tag_pattern.findall(html)[0].split(',') IndexError: list index out of range