From 0031d4f9d33c1e123082030e982086b5b958fa43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BD=98=E5=95=9F=E5=8D=8E?= <1029559041@qq.com> Date: Mon, 23 Sep 2019 21:51:59 +0800 Subject: [PATCH] init --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index abf0a03..40027e9 100644 --- a/main.py +++ b/main.py @@ -465,7 +465,8 @@ class CnmoCrawler(MobilePhoneCrawler): for current_column in range(1, self.param_required_index + 1): val = source_ws.cell(row=current_row, column=current_column).value if val is None or len(val) == 0 or ( - current_column == 2 and val == '曝光' or val == '即将上市'): + '参考价格' in self.param_name_list and + current_column == list(self.param_name_list).index('参考价格')+1 and val == '曝光' or val == '即将上市'): for i in range(1, self.param_required_index + 1): target_ws.cell(row=write_row, column=i, value='') break