Commit 22065cff authored by rico.liu's avatar rico.liu

add book limit

parent 0f8817fe
...@@ -88,7 +88,7 @@ def checkData(check_data): ...@@ -88,7 +88,7 @@ def checkData(check_data):
if "自营" in str(ziying): if "自营" in str(ziying):
name = html.xpath( name = html.xpath(
"//div[@class='sku-name']/text()") "//div[@class='sku-name']/text()")
if ("定制"in str(name)) or ("防弹"in str(name)) or ("射击"in str(name)) or ("订制"in str(name)) or ("卫星"in str(name)) or ("靶"in str(name)) or ("企业定制"in str(name)) or ("军迷"in str(name)) or ("携行具"in str(name)): if ("定制"in str(name)) or ("防弹"in str(name)) or ("射击"in str(name)) or ("订制"in str(name)) or ("卫星"in str(name)) or ("靶"in str(name)) or ("企业定制"in str(name)) or ("军迷"in str(name)) or ("携行具"in str(name)) or ("出版社"in str(name)) or ("书籍"in str(name)):
print("定制/专用类产品暂不通过") print("定制/专用类产品暂不通过")
result.append("定制/专用类产品暂不通过") result.append("定制/专用类产品暂不通过")
id_all.append(date_id) id_all.append(date_id)
...@@ -178,7 +178,7 @@ def checkData(check_data): ...@@ -178,7 +178,7 @@ def checkData(check_data):
if len(ziying) == 1: if len(ziying) == 1:
name = html.xpath( name = html.xpath(
"//*[@id='gm-prd-main']/div[1]/h1/text()") "//*[@id='gm-prd-main']/div[1]/h1/text()")
if ("定制"in str(name)) or ("防弹"in str(name)) or ("射击"in str(name)) or ("订制"in str(name)) or ("卫星"in str(name)) or ("靶"in str(name)) or ("企业定制"in str(name)): if ("定制"in str(name)) or ("防弹"in str(name)) or ("射击"in str(name)) or ("订制"in str(name)) or ("卫星"in str(name)) or ("靶"in str(name)) or ("企业定制"in str(name)) or ("出版社"in str(name)) or ("书籍"in str(name)):
print("定制/专用类产品暂不通过") print("定制/专用类产品暂不通过")
result.append("定制/专用类产品暂不通过") result.append("定制/专用类产品暂不通过")
id_all.append(date_id) id_all.append(date_id)
...@@ -258,7 +258,8 @@ def checkData(check_data): ...@@ -258,7 +258,8 @@ def checkData(check_data):
if ("定制"in str(product_name)) or ("防弹"in str(product_name)) or ("射击"in str(product_name)) \ if ("定制"in str(product_name)) or ("防弹"in str(product_name)) or ("射击"in str(product_name)) \
or ("订制"in str(product_name)) or ("卫星"in str(product_name)) \ or ("订制"in str(product_name)) or ("卫星"in str(product_name)) \
or ("靶"in str(product_name)) or ("企业定制"in str(product_name)) \ or ("靶"in str(product_name)) or ("企业定制"in str(product_name)) \
or ("军迷"in str(product_name)) or ("携行具"in str(product_name)): or ("军迷"in str(product_name)) or ("携行具"in str(product_name)) \
or ("出版社"in str(name)) or ("书籍"in str(name)):
print("定制/专用类产品暂不通过") print("定制/专用类产品暂不通过")
result.append("定制/专用类产品暂不通过") result.append("定制/专用类产品暂不通过")
price_list.append(sn_price) price_list.append(sn_price)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment