master
潘啟华 5 years ago
parent a07daaac76
commit 0031d4f9d3
  1. 3
      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

Loading…
Cancel
Save