Closed Nenot233 closed 1 year ago
理论上来说重启BOT不会导致该推送的微博不被推送,如果发生这种情况,有以下几种可能
不知道你遇到的情况是否在上述之中?
关于检测上一条的话,因为即使以检测上一条作为判断更新的依据,也是在同样的时间节点存储记录,还会有置顶等的干扰。而且目前是将获取到的最近n条记录(api一次性获取微博数的上限)的,也包括上一条的信息。
如果正确获取到了微博会有成功获取@xxx的新微博
,没获取到会有未检测到@xxxx的新微博
的日志,希望可以定位到那儿发送日志看看。
请问一下真寻在哪找这个日志? "data/log"? 2022-11-25.log这个文件并未能找到未检测到@xxxx的新微博的日志
如果没有可以看看启动时候插件有没有被正确加载
在真寻帮助里面,能看得见微博推送这个插件,但是log上面确实没有 2022-11-25.log
emmmm,你这个日志怎么没有正常启动后的状态,我搜weibo
都没搜到相关的东西,如果正常的话是会有Succeeded to import zhenxun_plugin_weibo
的
我在等等看,会不会出现这个情况,有的话在反馈吧,目前是已经重启了
11-29 08:01:07 [ERROR] zhenxun_plugin_weibo | 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "D:\BOT\zhenxun_bot\bot.py", line 22, in
File "D:\BOT\zhenxun_bot\extensive_plugin\zhenxun_plugin_weibo\weibo_spider.py", line 360, in get_one_weibo retweet = self.parse_weibo(retweeted_status) File "D:\BOT\zhenxun_bot\extensive_plugin\zhenxun_plugin_weibo\weibo_spider.py", line 295, in parse_weibo weibo["screen_name"] = weibo_info["user"]["screen_name"] TypeError: 'NoneType' object is not subscriptable 询问一下,这个报错是因为我设置有问题吗?仅修改了weibo_config.yaml和init.py
微博用户id丢过来看看
Nenot104
测试了一下没发现什么问题,估计你config里user_id填错了
但是能正常推送
但是一检测就一片报错
weibo-133: desciption: 测试微博推送 enable_on_default: False format: 0 users:
emmm 我没办法复现
这份iss里面有个log有敏感信息,能删掉么)
关于微博检测问题,可以检测上一条为准
因为像调试BOT需要重启的时候就检测不到就不推送了←目前遇到的问题
或者有更好的检测方式