Blame view

scripts/competitor_xlsx_to_shoplazza_xlsx.py 722 Bytes
f3c11fef   tangwang   亚马逊格式数据 导入店匠
1
2
  #!/usr/bin/env python3
  """
80519ec6   tangwang   emazon -> shoplazza
3
  DEPRECATED SCRIPT NAME (kept for backward compatibility).
cd29428b   tangwang   亚马逊数据导入店匠店铺 - 数据处理
4
  
80519ec6   tangwang   emazon -> shoplazza
5
6
  The input `data/mai_jia_jing_ling/products_data/*.xlsx` files are Amazon-format exports
  (Parent/Child ASIN), not competitor data.
cd29428b   tangwang   亚马逊数据导入店匠店铺 - 数据处理
7
  
80519ec6   tangwang   emazon -> shoplazza
8
  Please use:
cd29428b   tangwang   亚马逊数据导入店匠店铺 - 数据处理
9
10
    - `scripts/amazon_xlsx_to_shoplazza_xlsx.py`
  
80519ec6   tangwang   emazon -> shoplazza
11
12
  This wrapper simply forwards all CLI args to the correctly named script, so you
  automatically get the latest performance improvements (fast read/write).
f3c11fef   tangwang   亚马逊格式数据 导入店匠
13
14
  """
  
f3c11fef   tangwang   亚马逊格式数据 导入店匠
15
  import sys
f3c11fef   tangwang   亚马逊格式数据 导入店匠
16
17
  from pathlib import Path
  
f3c11fef   tangwang   亚马逊格式数据 导入店匠
18
19
  # Allow running as `python scripts/xxx.py` without installing as a package
  sys.path.insert(0, str(Path(__file__).resolve().parent))
f3c11fef   tangwang   亚马逊格式数据 导入店匠
20
  
80519ec6   tangwang   emazon -> shoplazza
21
  from amazon_xlsx_to_shoplazza_xlsx import main as amazon_main
f3c11fef   tangwang   亚马逊格式数据 导入店匠
22
23
24
  
  
  if __name__ == "__main__":
80519ec6   tangwang   emazon -> shoplazza
25
      amazon_main()
f3c11fef   tangwang   亚马逊格式数据 导入店匠