whusnoopy / renrenBackup

A backup tool for renren.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IndexError: list index out of range

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 98, in fetch_user
fetch_album(uid)
File "fetch.py", line 71, in fetch_album
album_count = crawl_album.get_albums(uid)
File "I:\renrenBackup-master\crawl\album.py", line 118, in get_albums
total += get_album_list_page(cur_page, uid)
File "I:\renrenBackup-master\crawl\album.py", line 106, in get_album_list_page
get_album_summary(aid, uid)
File "I:\renrenBackup-master\crawl\album.py", line 18, in get_album_summary
first_photo_id = re.findall(r'"photoId":"(\d+)",', resp.text)[0]
IndexError: list index out of range

这个看起来是出现了特定的脏数据,试试看把这个方法调用的 aid 和 uid 打印出来,需要找到对应的页面去验证一下

#15 fixed