ey-commerce-lib 1.0.19__py3-none-any.whl → 1.0.20__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ey-commerce-lib might be problematic. Click here for more details.

@@ -26,11 +26,16 @@ def get_single_order_item_list(order_element: html.HtmlElement):
26
26
  variants = sku_element.xpath(
27
27
  './/p[@class="pairProInfoName orderPairNameIsOverlength"]/span[@class="isOverLengThHide"]/text()')
28
28
  variant_list = list()
29
+ # 原来的变种
30
+ origin_variants = []
29
31
  for variant in variants:
30
- variant_list.append({
31
- 'name': variant.split(':')[0].strip(),
32
- 'value': variant.split(':')[1].strip()
33
- })
32
+ if len(variant.split(':')) == 2:
33
+ variant_list.append({
34
+ 'name': variant.split(':')[0].strip(),
35
+ 'value': variant.split(':')[1].strip()
36
+ })
37
+ else:
38
+ origin_variants.append(variant)
34
39
  # 获取来源数据
35
40
  source_presentation_element_list = (sku_element.
36
41
  xpath('.//ul[@id="dropSourceUrl"]/li[@role="presentation"]/a/text()'))
@@ -47,6 +52,7 @@ def get_single_order_item_list(order_element: html.HtmlElement):
47
52
  'currency': currency,
48
53
  'img': img,
49
54
  'variants': variant_list,
55
+ 'origin_variants': origin_variants,
50
56
  'source_list': source_presentation_element_list
51
57
  })
52
58
  # 订单金额
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ey-commerce-lib
3
- Version: 1.0.19
3
+ Version: 1.0.20
4
4
  Summary: eeyoung电商客户端调用封装
5
5
  Author-email: 饶奇奇 <1124393197@qq.com>
6
6
  Requires-Python: >=3.10
@@ -12,7 +12,7 @@ ey_commerce_lib/dxm/parser/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
12
12
  ey_commerce_lib/dxm/parser/common.py,sha256=srzjwl7CviDgv0vizDC3RO2cbkQG9Pl-JpQpGAO5U14,3627
13
13
  ey_commerce_lib/dxm/parser/count.py,sha256=WOrGeA6DP6_IBtiF1TEZhW528f8kHxlT2cpmg_7FKPM,1561
14
14
  ey_commerce_lib/dxm/parser/ebay_product.py,sha256=Ub6of2YhFnXQwZiFBvZa6wnTIsGbsedAKHW92dbBHIY,589
15
- ey_commerce_lib/dxm/parser/order.py,sha256=ApFa02xFovrrJ4JHPL9NEJisKQO5v8NV485TpfmKgYA,17901
15
+ ey_commerce_lib/dxm/parser/order.py,sha256=kVnzUDpGvBgy_IWWGnA8C9PFpJG1vWWqq33WetTrbHE,18139
16
16
  ey_commerce_lib/dxm/parser/purchase.py,sha256=lmcC41HtdUqCgGamFASPnzHatUziLFaenTJmazsiMm0,5750
17
17
  ey_commerce_lib/dxm/parser/tracking.py,sha256=ND7Xo31lMycmRLXIYtPAXqOh2W-tmeFE8t-f-sNDLLI,2629
18
18
  ey_commerce_lib/dxm/parser/warehouse.py,sha256=oQVojPX8VKHUphdV1KY5ZK1PCFtOY2zwkyLNUeJ3JT0,3310
@@ -55,6 +55,6 @@ ey_commerce_lib/utils/dxm.py,sha256=jVNltK_Pm_yMzXReD0Aw5VW6kzIZ5Bn23RucS0DKBI0,
55
55
  ey_commerce_lib/utils/float.py,sha256=PiOMf9pRApc1DskKkhKx0LAWHAYTpAPT_G4QRZRd8ZU,905
56
56
  ey_commerce_lib/utils/list_util.py,sha256=R1w7B1m3sEXr38zSHWp-15C3xAs5ykYCCpvwmnRW4xs,545
57
57
  ey_commerce_lib/utils/str.py,sha256=939xE0y8U7KEWjwbEezMlaWJNBsfb2BSb-dBpYbOD8Q,138
58
- ey_commerce_lib-1.0.19.dist-info/METADATA,sha256=7jzqPSilBEag4mOkYasADvKEZd3i3PsxjuszRyxmWso,391
59
- ey_commerce_lib-1.0.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
60
- ey_commerce_lib-1.0.19.dist-info/RECORD,,
58
+ ey_commerce_lib-1.0.20.dist-info/METADATA,sha256=Yb9R3yp3LqKqr7M9Z4WkCSEtxu6kq6UFQRH2cQVOvhg,391
59
+ ey_commerce_lib-1.0.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
60
+ ey_commerce_lib-1.0.20.dist-info/RECORD,,