nfe-w / aio-dynamic-push

一款整合多平台动态/直播开播提醒检测与推送的小工具, 目前支持:B站、微博、小红书、抖音、斗鱼、虎牙。
MIT License
155 stars 18 forks source link

mblog的问题 #2

Closed Draudnaut closed 7 months ago

Draudnaut commented 7 months ago

您好,我用您的docker项目去拉去微博动态更新。运行时出现了这个问题:

2024-03-07 17:55:57,712 - 49-MainThread - main.py[line: 12] - INFO: 开始初始化推送通道 2024-03-07 17:55:57,712 - 49-MainThread - main.py[line: 19] - INFO: 初始化推送通道: 推送通道_Gotify,通道类型: gotify 2024-03-07 17:55:57,712 - 49-MainThread - main.py[line: 23] - INFO: 初始化查询任务 2024-03-07 17:55:57,712 - 49-MainThread - main.py[line: 28] - INFO: 初始化查询任务: 任务_weibo,任务类型: weibo 2024-03-07 17:55:58,095 - 49-MainThread - query_weibo.py[line: 29] - ERROR: 【微博-查询任务-任务_weibo】出错:'mblog' Traceback (most recent call last): File "/app/query_task/query_weibo.py", line 27, in query self.query_dynamic(uid) File "/app/query_task/query_weibo.py", line 48, in query_dynamic if card["mblog"].get("isTop", None) == 1 or card["mblog"].get("mblogtype", None) == 2: KeyError: 'mblog' ^CTraceback (most recent call last): File "/app/main.py", line 47, in main() File "/app/main.py", line 43, in main init_query_task(query_task_config_list) File "/app/main.py", line 34, in init_query_task time.sleep(1) KeyboardInterrupt

这个是缺少了字段导致的么,这个mblog我看了应该是response里面的字段

Draudnaut commented 7 months ago

我请求得到的字段在附件里面 test.json

请求的URL https://m.weibo.cn/api/container/getIndex?type=3248438592&value=3248438592&containerid=1076033248438592&count=25

但是这个请求是正确的 https://m.weibo.cn/api/container/getIndex?type=6441489862&value=6441489862&containerid=1076036441489862&count=25

Draudnaut commented 7 months ago

image 好像知道了,这个地方如果有置顶图片的话会报bug,这个地方可以修改一下?看看我是否能开个PR?

nfe-w commented 7 months ago

感谢反馈,已修复

Draudnaut commented 7 months ago

卧槽这么快~ 感谢repo主~ 需要重新拉镜像么

nfe-w commented 7 months ago

卧槽这么快~ 感谢repo主~ 需要重新拉镜像么

要的,已经自动构建完毕了

Draudnaut commented 7 months ago

好像我本地docker拉不起来了(( 我是先git pull 然后docker删除本地镜像重新执行readme里面的docker run,但是重试了好几次都失败了

nfe-w commented 7 months ago

不需要拉git代码的,直接删除老镜像,拉新镜像即可

docker rmi nfew/aio-dynamic-push:latest
docker pull nfew/aio-dynamic-push:latest
nfe-w commented 7 months ago

需要先将老容器停止并删除

Draudnaut commented 7 months ago

不好意思不太确定这个是否是停下来了,所以我把状态发上来了 image

这样的话应该是停下来了? image

nfe-w commented 7 months ago

看起来是停下来了,不过看起来你的容器有些多,可以如下查询:

docker ps -a | grep nfew
Draudnaut commented 7 months ago

image

感谢感谢,我试了几次,每次都是刚启动然后就挂了。我用您给的命令更新过了

Draudnaut commented 7 months ago

image 看了下是这个原因

Draudnaut commented 7 months ago

没事了没事了是我启动命令写错了,感谢作者~

Draudnaut commented 7 months ago

image 想多一句嘴,推送通道这么写应该是对的吧

nfe-w commented 7 months ago

看起来没问题,只要和通道名称一致即可

Draudnaut commented 7 months ago

好的,谢谢po主耐心指导~

NFE_W @.***> 于2024年3月7日周四 19:53写道:

看起来没问题,只要和通道名称一致即可

— Reply to this email directly, view it on GitHub https://github.com/nfe-w/aio-dynamic-push/issues/2#issuecomment-1983350995, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEAA2YUDWCUK3AT6MEPY4IDYXBILVAVCNFSM6AAAAABEKVKAACVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBTGM2TAOJZGU . You are receiving this because you authored the thread.Message ID: @.***>