IshtarTang / lofterSpider

lofter的爬虫,爬所有点过的喜欢/推荐/tag、爬取个人主页。l8和l10还没更新,跑不了,先别用
174 stars 20 forks source link

l9、l10都有这个报错,不知道是什么情况? #9

Closed Ltmte closed 7 months ago

Ltmte commented 7 months ago

Traceback (most recent call last): File "D:\PythonFiles\lofterSpider-master\l10_blogs_txt.py", line 111, in archives_info = save_files(blog_urls) File "D:\PythonFiles\lofterSpider-master\l10_blogs_txt.py", line 77, in save_files time_and_title = get_time_and_title(blog_url, author_page_parse) File "D:\PythonFiles\lofterSpider-master\l10_blogs_txt.py", line 24, in get_time_and_title author_id = author_page_parse.xpath("//body/iframe[@id='control_frame']/@src")[0].split("blogId=")[1] IndexError: list index out of range

IshtarTang commented 7 months ago

之前访问博客主页不用登录,我的代码就没做登录步骤,最近改版成要登录的了,我修一下去

IshtarTang commented 7 months ago

修好了

Ltmte commented 7 months ago

修好了

感谢!