6dylan6 / auto_comment

带图评价
420 stars 75 forks source link

list index out of range #51

Open Cjsah opened 7 months ago

Cjsah commented 7 months ago
## 开始执行... 2023-12-27 14:26:02

已获取环境变量 CK

开始第 1 个账号评价...

待评价订单 21----待追评 1----服务评价 0----已评价 0

1.开始评价晒单
当前共有21个评价。
list index out of range

待评价订单 21----待追评 1----服务评价 0----已评价 0

2.开始追评!
当前共有1个需要追评。

待评价订单 21----待追评 1----服务评价 0----已评价 0

该账号运行完成!

## 执行结束...   耗时 2 秒
a193567337 commented 6 months ago

我也是这样!!

xmo-code commented 6 months ago

+1

danceking commented 5 months ago

使用chatgpt修改过能跳过错误继续执行了,大家可以试试 jd_comment.py文件第288行后面添加下面代码:

                opts['logger'].info(f'第{i + 1}个订单链接: %s',pid_data)
                if pid_data and pid_data[0] == 'javascript:void(0)':
                    opts['logger'].info(f'第{i + 1}个订单链接错误: %s',pid_data)
                    continue

重点是判断'javascript:void(0)',大家根据情况适当调整。

改后效果: 微信截图_20240222154039 微信截图_20240222154054