共计 1657 个字符,预计需要花费 5 分钟才能阅读完成。
背景
在很多行业,比方商品采集、登载、数据分析行业都须要用到相干的商品接口,然而官网个别又没有凋谢这些接口,怎么办?
解决方案
js 逆向爬虫倒是很简略,然而基本扛不住大量调用,不稳固,目前支流的计划都是逆向 APP 获取数据,然而这个不是个别人又能力去做的,加上淘系变动频繁,防爬越来越严,技术难度和老本也越来越大,不倡议尝试。没有能力的也能够找第三方 api 提供商
参考示例
{
"code": 200,
"msg": "success",
"data": {
"item_id": 650280103038,
"title": "多功能硅胶洗碗刷不易沾油抹布 双面硅胶清洁刷 厨房刷锅洗碗家用",
"category_id": "1039274",
"root_category_id": "201547901",
"currency": "CNY",
"product_props": [
{
"name": "产品类别",
"value": "锅碟碗刷"
},
{
"name": "是否进口",
"value": "否"
},
{
"name": "品牌",
"value": "其余"
},
{
"name": "货号",
"value": "硅胶洗碗刷"
},
{
"name": "材质",
"value": "其余"
},
{
"name": "产地",
"value": "浙江"
},
{
"name": "贸易属性",
"value": "内贸"
},
{
"name": "包装",
"value": "OPP 袋"
},
{
"name": "价格段",
"value": "5 元以内"
},
{
"name": "产品上市工夫",
"value": "2014 年夏"
},
{
"name": "专利",
"value": "否"
},
{
"name": "只数",
"value": "1"
},
{
"name": "是否跨境进口专供货源",
"value": "否"
},
{
"name": "编码",
"value": "HUYOU49"
}
],
"main_imgs": [
"https://cbu01.alicdn.com/img/ibank/O1CN01rF21CX2BYoEdRjHaS_!!2211376138351-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN01A40OHp2BYoEeboHqi_!!2211376138351-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN01fqu23R2BYoEbohtfk_!!2211376138351-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN01CGGHzo2BYoET7fmpI_!!2211376138351-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN01HB4DSL2BYoEh2Canb_!!2211376138351-0-cib.jpg"
],
"video_url": "","sale_count":"5969","shop_info": {"shop_name":" 义乌市域风电子商务商行 ","seller_id": null},
"sku_price_scale": "¥1.00",
"sku_price_scale_original": "¥3.00",
"sku_price_range": {
"begin_num": null,
"stock": "49771",
"sku_param": {
"skuPriceType": "rangePrice",
"skuRangePrices": [
{
"beginAmount": "3",
"price": "1.00",
"startAmount": "3"
}
]
}
},
"sku_props": [],
"skus": [
{
"skuid": "0",
"sale_price": "1.00",
"stock": "49771",
"props_ids": "","props_names":""
}
]
}
}
正文完