141 lines
3.8 KiB
JSON
141 lines
3.8 KiB
JSON
{
|
|
"schemaVersion": 2,
|
|
"ruleType": "pddProductDetail",
|
|
"navigation": {
|
|
"steps": [
|
|
{
|
|
"id": "browser-open-pdd",
|
|
"page": "browser",
|
|
"packageName": "com.heytap.browser",
|
|
"action": "click",
|
|
"selector": {
|
|
"text": "打开拼多多APP"
|
|
},
|
|
"timeoutMs": 15000,
|
|
"optional": true
|
|
},
|
|
{
|
|
"id": "system-open",
|
|
"page": "system-confirm",
|
|
"packageName": "android",
|
|
"action": "click",
|
|
"selector": {
|
|
"text": "打开"
|
|
},
|
|
"timeoutMs": 8000,
|
|
"optional": true
|
|
}
|
|
]
|
|
},
|
|
"pageEvidence": {
|
|
"packageName": "com.xunmeng.pinduoduo",
|
|
"activityName": "com.xunmeng.pinduoduo.activity.NewPageActivity",
|
|
"selector": {
|
|
"resourceId": "android:id/content",
|
|
"className": "android.widget.FrameLayout"
|
|
}
|
|
},
|
|
"pageRecovery": {
|
|
"transientSoldOut": {
|
|
"enabled": true,
|
|
"exactText": "商品已售罄",
|
|
"fallbackTopText": "相似商品",
|
|
"pullDownCount": 2,
|
|
"intervalMs": 1000,
|
|
"settleMs": 2000,
|
|
"maxAttempts": 1
|
|
}
|
|
},
|
|
"navigationRecovery": {
|
|
"reopenBrowser": {
|
|
"enabled": true,
|
|
"maxAttempts": 1,
|
|
"settleMs": 1000
|
|
}
|
|
},
|
|
"currentPageIdentity": {
|
|
"shareAliases": [
|
|
"分享"
|
|
],
|
|
"copyLinkAliases": [
|
|
"复制链接"
|
|
],
|
|
"pageTimeoutMs": 5000,
|
|
"sharePanelTimeoutMs": 5000,
|
|
"clipboardTimeoutMs": 5000
|
|
},
|
|
"hooks": {
|
|
"afterSpecPanelOpen": []
|
|
},
|
|
"collector": {
|
|
"collectorId": "pddProductDetailV1",
|
|
"specEntryStrategy": "safeBottomSpecEntryV1",
|
|
"priceParser": "pddRmbPriceV1",
|
|
"priceGranularity": "color",
|
|
"dimensionAliases": {
|
|
"color": [
|
|
"颜色分类",
|
|
"颜色",
|
|
"款式",
|
|
"颜色款式",
|
|
"花色"
|
|
],
|
|
"size": [
|
|
"尺码",
|
|
"尺寸",
|
|
"套餐",
|
|
"参考分类"
|
|
]
|
|
},
|
|
"textAliases": {
|
|
"specPanel": {
|
|
"titleAliases": ["确认款式", "確認款式"],
|
|
"closeAliases": ["关闭", "關閉"],
|
|
"confirmAliases": ["确定", "確定", "确认", "確認"],
|
|
"quantityDecreaseAliases": ["减少数量", "減少數量"],
|
|
"quantityIncreaseAliases": ["增加数量", "增加數量"],
|
|
"paymentAreaAliases": ["微信支付", "先用后付", "先用後付", "支付方式"],
|
|
"orderSubmitAliases": ["提交订单", "提交訂單"],
|
|
"quickBuyAliases": ["现在买", "現在買"]
|
|
},
|
|
"dimension": {
|
|
"colorSuffixes": ["颜色", "款式"],
|
|
"sizeSuffixes": ["尺码", "尺寸"],
|
|
"exactNames": ["规格", "型号", "容量", "类型", "版本", "口味"],
|
|
"adaptiveAliases": ["套餐"]
|
|
},
|
|
"selection": {
|
|
"summaryPrefixes": ["已选", "请选择", "已選", "請選擇"],
|
|
"selectedPrefixes": ["已选", "已選"],
|
|
"specEntryPrefixes": ["请选择", "选择", "已选"],
|
|
"submitHintAliases": ["选择", "選擇", "颜色", "顏色", "尺码", "尺碼", "规格", "規格"]
|
|
},
|
|
"review": {
|
|
"entryAliases": ["商品评价", "全部评价", "评价详情", "评论", "晒单", "问答"]
|
|
},
|
|
"soldOut": {
|
|
"mainProductExactAliases": ["进店", "单独购买", "发起拼单", "立即购买"],
|
|
"mainProductPrefixAliases": ["商品评价"]
|
|
},
|
|
"purchase": {
|
|
"buyWords": ["单独购买", "立即购买", "发起拼单", "去拼单", "免拼购买", "购买"]
|
|
}
|
|
},
|
|
"timeoutsMs": {
|
|
"page": 30000,
|
|
"specPanel": 10000,
|
|
"selection": 2000,
|
|
"price": 2000,
|
|
"overall": 180000
|
|
},
|
|
"limits": {
|
|
"goodsPageVerticalSwipes": 3,
|
|
"specHorizontalSwipes": 12,
|
|
"specVerticalSwipes": 12,
|
|
"stableEdgeReads": 2,
|
|
"stablePriceReads": 2,
|
|
"maxSkuCount": 500
|
|
}
|
|
}
|
|
}
|