whusnoopy / renrenBackup

A backup tool for renren.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KeyError: 'authorName'

sfs00784 opened this issue · comments

Traceback (most recent call last):
File "fetch.py", line 129, in
fetched = fetch_user(fetch_uid, cmd_args)
File "fetch.py", line 102, in fetch_user
fetch_blog(uid)
File "fetch.py", line 79, in fetch_blog
blog_count = crawl_blog.get_blogs(uid)
File "I:\renrenBackup-master\crawl\blog.py", line 71, in get_blogs
total = load_blog_list(cur_page, uid)
File "I:\renrenBackup-master\crawl\blog.py", line 47, in load_blog_list
get_comments(bid, 'blog', owner=uid)
File "I:\renrenBackup-master\crawl\utils.py", line 88, in get_comments
save_user(c['authorId'], c['authorName'], c['authorHeadUrl'])
KeyError: 'authorName'

这个看起来是出现了特定的脏数据,试试看把这里的整个 c 结构体打印出来看看里面有什么,没有具体的数据也无法修复

谢谢,已找到问题所在。是该日志的评论有一个已被删除帐号的会员。手动删除该条评论后成功了。