ey-commerce-lib 1.0.19__tar.gz → 1.0.20__tar.gz
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.
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/PKG-INFO +1 -1
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/pyproject.toml +1 -1
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/order.py +10 -4
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/.gitignore +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/.python-version +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/README.md +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/pytest.ini +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/constant/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/constant/order.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/exception/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/exception/common.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/main.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/order.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/common.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/count.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/ebay_product.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/purchase.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/tracking.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/warehouse.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/common.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/dxm_commodity_product.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/ebay_product.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/order.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/tracking.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/warehouse.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/utils/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/utils/dxm_commodity_product.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/utils/mark.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/constant/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/constant/response.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/main.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/parser/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/parser/order.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/schemas/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/schemas/query/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/schemas/query/order.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/schemas/vo/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/schemas/vo/order.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/main.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/query/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/query/order.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/query/product.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/response/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/response/order.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/response/product.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/model.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/py.typed +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/takesend/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/takesend/config.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/takesend/main.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/utils/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/utils/close.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/utils/dxm.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/utils/float.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/utils/list_util.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/utils/str.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/tests/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/tests/dxm/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/tests/dxm/test_purchase.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/tests/kogan/__init__.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/tests/kogan/test_client.py +0 -0
- {ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/uv.lock +0 -0
|
@@ -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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
# 订单金额
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/constant/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/exception/__init__.py
RENAMED
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/exception/common.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/ebay_product.py
RENAMED
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/purchase.py
RENAMED
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/tracking.py
RENAMED
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/parser/warehouse.py
RENAMED
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/ebay_product.py
RENAMED
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/tracking.py
RENAMED
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/dxm/schemas/warehouse.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/parser/__init__.py
RENAMED
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/four_seller/parser/order.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/query/order.py
RENAMED
|
File without changes
|
{ey_commerce_lib-1.0.19 → ey_commerce_lib-1.0.20}/src/ey_commerce_lib/kogan/schemas/query/product.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|