George-Octoparse commited on
Commit
72ef320
·
verified ·
1 Parent(s): e7007fa

feat: v2.0.0 real data - data_dictionary.md

Browse files
Files changed (1) hide show
  1. data_dictionary.md +65 -0
data_dictionary.md ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Data Dictionary — Temu E-commerce Pricing & SKU Variant Dataset
2
+ **Version:** 2.0.0 | **Provider:** Octoparse Managed Data Service
3
+
4
+ ---
5
+
6
+ ## Table: `products.parquet`
7
+ One row per Temu product listing (SPU). Contains product-level metadata.
8
+ **85 rows.**
9
+
10
+ | Field | Type | Example | Business Context |
11
+ |---|---|---|---|
12
+ | `spu_id` | string | `"606068486800016"` | Temu's Standard Product Unit ID. Use as join key with `skus.parquet`. Stored as string to prevent int64 overflow. |
13
+ | `product_url` | string | `"https://m.temu.com/product-g-606068486800016.html"` | Canonical mobile URL. Append to any Temu domain for desktop. |
14
+ | `is_on_sale` | boolean | `True` | Whether the product is currently purchasable. All 85 products in this sample are active. |
15
+ | `not_on_sale_reason` | string | `"Unavailable for purchase"` | Only populated when `is_on_sale=False`. Null for all active products. |
16
+ | `goods_property_summary` | string | `"Material:Polyester;Style:Casual;Season:Summer"` | Semicolon-delimited key:value property bag. Keys vary widely across products (~178 unique keys). Useful for taxonomy building. Parse defensively (typos present, e.g. `"Seasoon"`). |
17
+
18
+ ---
19
+
20
+ ## Table: `skus.parquet`
21
+ One row per SKU (product variant). Foreign key `spu_id` joins to `products.parquet`.
22
+ **382 rows, avg 4.5 SKUs per product.**
23
+
24
+ | Field | Type | Example | Business Context |
25
+ |---|---|---|---|
26
+ | `sku_id` | string | `"17592356187455"` | Temu's variant-level ID. Unique per color/size/style combination. |
27
+ | `spu_id` | string | `"606068486800016"` | FK → `products.spu_id`. |
28
+ | `sku_main_pic` | string | `"https://aimg.kwcdn.com/..."` | CDN URL for the SKU's primary image. URLs are static (not signed). Use for visual product matching or multimodal AI pipelines. |
29
+ | `sku_original_price` | float64 | `12.99` | Strikethrough list price in USD. **Null for ~69% of SKUs** — Temu only renders this when actively showing a "was/now" comparison. Absence ≠ no discount; it means Temu isn't surfacing the comparison at this moment. |
30
+ | `sku_discounted_price` | float64 | `4.89` | Current selling price in USD at scrape time. Range: $2.14 – $219.72. |
31
+ | `discount_pct` | float64 | `0.6235` | Computed: `(original − discounted) / original`. Only populated when both prices present (120/382 SKUs). Use `log1p` transform for modeling. |
32
+ | `sale_attr_color` | string | `"Black"` | Color variant label. May bundle quantity (e.g. `"Red Rose Vine - 3pcs"`). |
33
+ | `sale_attr_size` | string | `"6.5-7"` | Size variant. Format varies: numeric (`8`), range (`6.5-7`), children's age (`3-4Y`), clothing (`XL`). Normalize before comparison. |
34
+ | `sale_attr_quantity` | string | `"1pc"` | Quantity or bundle label. Highly variable — ranges from `"1pc"` to full product descriptions. Not reliably machine-parseable as numeric. |
35
+ | `sale_attr_capacity` | string | `"500ml"` | Volume/storage capacity. Sparse (<1% populated). |
36
+ | `sale_attr_model` | string | `"Standard"` | Product model variant. Sparse (~2% populated). |
37
+ | `sale_attr_style` | string | `"Modern"` | Style variant. Sparse (~1% populated). |
38
+ | `sale_attr_compatible_model` | string | `"iPhone 15"` | Device compatibility for accessories. Sparse (~1% populated). |
39
+ | `sale_property_summary` | string | `"Color:Black\|Size:XL"` | Pipe-delimited summary of all non-null `sale_attr_*` values for this SKU. Prefer this over individual columns for display or search. |
40
+
41
+ ---
42
+
43
+ ## Derived Metrics (compute on demand)
44
+
45
+ | Metric | Formula | Use Case |
46
+ |---|---|---|
47
+ | Discount Rate | `discount_pct` (precomputed) | Price competitiveness signal |
48
+ | SKU Count per Product | `COUNT(sku_id) GROUP BY spu_id` | Variant complexity scoring |
49
+ | Price Spread per Product | `MAX(sku_discounted_price) - MIN(sku_discounted_price) GROUP BY spu_id` | Dynamic pricing range per SKU matrix |
50
+ | Has Strikethrough Price | `sku_original_price.notna()` | Promotion detection filter |
51
+
52
+ ---
53
+
54
+ ## Key Data Limitations
55
+
56
+ | Issue | Detail |
57
+ |---|---|
58
+ | `sku_original_price` sparsity | 68.6% null — Temu algorithmically controls when strikethrough prices are shown |
59
+ | `sale_attr_*` mutual exclusivity | Each SKU uses at most 1–2 of 7 attribute columns; remaining are null |
60
+ | Price is a snapshot | No historical cadence in this sample — prices change frequently on Temu |
61
+ | `goods_property_summary` key inconsistency | ~178 unique keys, some duplicated under different spellings |
62
+
63
+ ---
64
+
65
+ *Generated by Octoparse Managed Data Service pipeline `octoparse-temu-pricing-v2`. For production-scale Temu price monitoring pipelines (hourly cadence, 10K+ SKUs), visit [octoparse.com/managed-data-service](https://www.octoparse.com/managed-data-service).*