From ae95af0e8145bfc4a653f0290e7c1f8e7cfa572b Mon Sep 17 00:00:00 2001 From: dylan <58234511@qq.com> Date: Sun, 2 Oct 2022 20:58:51 +0800 Subject: [PATCH] 1 --- jd_comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jd_comment.py b/jd_comment.py index add6ebb..676c7f7 100644 --- a/jd_comment.py +++ b/jd_comment.py @@ -117,7 +117,7 @@ def generation(pname, _class=0, _type=1, opts=None): spider = jdspider.JDSpider(item,ck) opts['logger'].debug('Successfully created a JDSpider instance') # 增加对增值服务的评价鉴别 - if "赠品" in pname or "非实物" in pname or "增值服务" in pname: + if "赠品" in pname or "非实物" in pname or "非卖品" in pname or "增值服务" in pname: result = [ "赠品挺好的。", "很贴心,能有这样免费赠送的赠品!",