报错indexerror
为了更好的解决问题,请认真回答下面的问题。等到问题解决,请及时关闭本issue。
- 问:请您指明哪个版本运行出错(github版/PyPi版/全部)?
答:github版
- 问:您使用的是否是最新的程序(是/否)?
答:是
- 问:爬取任意用户都会运行出错吗(是/否)?
答:是
- 问:若只有爬特定微博时才出错,能否提供出错微博的weibo_id或url(非必填)?
答:
- 问:若您已提供出错微博的weibo_id或url,可忽略此内容,否则能否提供出错账号的user_id及您配置的since_date,方便我们定位出错微博(非必填)?
答:
- 问:如果方便,请您描述出错详情,最好附上错误提示。
答:终端运行“python3 -m weibo_spider”后报错: list index out of range Traceback (most recent call last): File "/opt/anaconda3/lib/python3.12/site-packages/weibo_spider/parser/index_parser.py", line 39, in get_user self.user.weibo_num = string_to_int(user_info[0][3:-1]) ~~~~~~~~~^^^ IndexError: list index out of range
被暂时限制了,一般来说,限制过一段时间会自动解除。
被暂时限制了,一般来说,限制过一段时间会自动解除。
过了很长一段时间还是存在这个问题,并且更换了不同账号cookie且使用了其他电脑进行ip更换,请问这是什么问题呢
已解决,由于cookie过期从而更换cookie时未注意,不使用 m.weibo.cn 的cookie,使用此链接的cookie会一直报list index out of range,使用weibo.cn的cookie可以正常运行,
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Closing as stale, please reopen if you'd like to work on this further.