背景
在很多行业,比方淘客、商品采集、登载、数据分析行业都须要用到相干的商品接口,然而官网个别又没有凋谢这些接口,怎么办?
解决方案
js 逆向爬虫倒是很简略,然而基本扛不住大量调用,不稳固,目前支流的计划都是逆向 APP 获取数据,然而这个不是个别人又能力去做的,加上淘宝变动频繁,防爬越来越严,技术难度和老本也越来越大,没有能力的也能够找第三方 api 提供商
参考示例
{
"code": 200,
"msg": "success",
"data": {
"item_id": 637336124117,
"title": "膳魔师真保温杯进口保温水杯家用细微杯子便携保温杯 JNI-401 母婴",
"category_id": "121450007",
"root_category_id": "50014812",
"currency": "CNY",
"product_props": [
{
"key": "产地",
"value": "马来西亚"
},
{
"key": "品牌",
"value": "THERMOS/ 膳魔师"
},
{
"key": "货号",
"value": "JNI-401-1"
},
{
"key": "材质",
"value": "不锈钢"
},
{
"key": "色彩分类",
"value": "红色 -MBE 灰色 -MGY"
},
{
"key": "实用年龄",
"value": "12 岁 4 岁 14 岁以上 6 岁 8 岁"
},
{
"key": "容量",
"value": "400mL"
},
{
"key": "是否带柄",
"value": "否"
}
],
"main_imgs": [
"https://img.alicdn.com/imgextra/i1/2392773550/O1CN011fFFv11c5wkvEN9XO_!!0-item_pic.jpg",
"https://img.alicdn.com/imgextra/i2/2392773550/O1CN01T1Zpn11c5wgsPFOnw_!!2392773550.jpg",
"https://img.alicdn.com/imgextra/i3/2392773550/O1CN01rFXUDT1c5wgzhxNef_!!2392773550.jpg",
"https://img.alicdn.com/imgextra/i4/2392773550/O1CN01F4RAIT1c5wgyZxfiu_!!2392773550.jpg",
"https://img.alicdn.com/imgextra/i4/2392773550/O1CN01zE04E91c5wdjO0v8C_!!2392773550.jpg"
],
"video_url": "","comment_count": null,"shop_info": {"shop_name":"THERMOS 膳魔师海内旗舰店 ","shop_id":"116191012","shop_url": null,"shop_rate": [
{
"title": "宝贝形容",
"type": "desc",
"score": "4.8"
},
{
"title": "卖家服务",
"type": "serv",
"score": "4.8"
},
{
"title": "物流服务",
"type": "post",
"score": "4.8"
}
],
"good_rate_percentage": null,
"followers": null,
"is_tmall": true,
"is_gold_seller": false,
"shop_logo": "//img.alicdn.com/imgextra//f0/81/TB1Op4LHXXXXXaXXFXXSutbFXXX.jpg",
"shop_start_time": null,
"seller_id": "2392773550",
"wangwang": ""},"delivery_info": {"area_from": [" 香港 "],"area_id":"1","postage":"0"},"sku_props": [
{
"prop_name": "色彩分类",
"pid": "1627207",
"values": [
{
"name": "红色 -MBE",
"vid": "60092",
"imageUrl": "https:https://gw.alicdn.com/bao/uploaded/i3/2392773550/O1CN019mPKe61c5wipzwYyA_!!2392773550.jpg"
},
{
"name": "灰色 -MGY",
"vid": "3232480",
"imageUrl": "https:https://gw.alicdn.com/bao/uploaded/i4/2392773550/O1CN010hlSxz1c5winLXo7H_!!2392773550.jpg"
}
]
}
],
"skus": [
{
"skuid": "4576934505784",
"sale_price": "229",
"origin_price": null,
"stock": "285",
"props_ids": "1627207:60092",
"sub_price": null,
"sub_price_type": null,
"sub_price_cart": "99",
"sub_price_cart_type": "活动期券后"
},
{
"skuid": "4576934505785",
"sale_price": "229",
"origin_price": null,
"stock": "338",
"props_ids": "1627207:3232480",
"sub_price": null,
"sub_price_type": null,
"sub_price_cart": "99",
"sub_price_cart_type": "活动期券后"
}
],
"promotions": [
{
"content": "跨店每 200 减 20",
"sub_content": "跨店每 200 减 20",
"start_time": "2021-12-12 00:00:00",
"end_time": "2021-12-14 23:59:59",
"type": "default"
},
{
"content": "淘金币抵 3%",
"sub_content": "淘金币抵 3%",
"start_time": null,
"end_time": null,
"type": "default"
},
{
"content": "商品券满 189 减 90",
"sub_content": "满 189 减 90",
"start_time": "2021-12-12 00:00:00",
"end_time": "2021-12-14 23:59:59",
"type": "default"
}
]
}
}