-
Notifications
You must be signed in to change notification settings - Fork 770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
批量下载时,中间有提示错误,但是下载还是继续,其他微博的下载也正常 #417
Comments
可能是个别微博出错,别的微博正常应该就没问题了。 |
新出现了一个错误,我看不太懂,麻烦问下是啥原因 |
看起来是写日志时出错,可能是message里有不能处理的乱码猜测,如果不影响csv文件等,就没问题。 |
string indices must be integers, not 'str'
Traceback (most recent call last):
File "Y:\weibo-crawler\weibo.py", line 883, in get_one_weibo
weibo = self.parse_weibo(weibo_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "Y:\weibo-crawler\weibo.py", line 782, in parse_weibo
weibo["pics"] = self.get_pics(weibo_info)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "Y:\weibo-crawler\weibo.py", line 448, in get_pics
pic_list = [pic["large"]["url"] for pic in pic_info]
~~~^^^^^^^^^
TypeError: string indices must be integers, not 'str'
The text was updated successfully, but these errors were encountered: