https://detailskip.taobao.com/service/getData/1/p2/item/detail/sib.htm?itemId=528392541802&modules=qrcode,viewer,price,contract,duty,xmpPromotion,dynStock,delivery,upp,sellerDetail,activity,fqg,zjys,coupon&callback=onSibRequestSuccess
请求这个接口一直 403
模拟请求的时候要在 header 设置一下来源页面 referer 属性为你要抓取的宝贝链接 ,就可以成功获取了
header={
"referer":"https://item.taobao.com/item.htm?id=524122865207"
}
{
"code": {"code": 0,
"message": "SUCCESS"
},
"data": {
"viewer": {
"admin": false,
"bs": "",
"buyDomain": "buy.taobao.com",
"buyerId": "",
"cartDomain": "cart.taobao.com",
"cc": false,
"ctUser": false,
"lgin": false,
"serviceTab": "ITEM",
"tkn": "eb11b76383e61"
},
"deliveryFee": {
"data": {
"areaId": 440300,
"areaName": "广东深圳",
"sendCity": "江苏南京",
"serviceInfo": {
"list": [
{
"id": "100_-4",
"info": "快递 免运费",
"isDefault": true,
"markInfo": "20小时内发货"
},
{
"id": "100_-7",
"info": "EMS <span class=\"wl-yen\">¥</span>12.00",
"markInfo": "20小时内发货"
}
]
}
},
"dataUrl": "//detailskip.taobao.com/json/deliveryFee.htm",
"message": "ok",
"success": true
},
"activity": { },
"originalPrice": {
";1627207:1580782459;": {
"price": "13.80"
},
";1627207:1580782454;": {
"price": "13.80"
},
"def": {
"price": "13.80"
},
";1627207:1580782456;": {
"price": "13.80"
},
";1627207:1580782452;": {
"price": "13.80"
},
";1627207:1580782453;": {
"price": "13.80"
},
";1627207:1580782460;": {
"price": "13.80"
}
},
"price": "13.80",
"tradeContract": {
"pay": [
{
"icons": [
"//img.alicdn.com/tfs/TB1KTHfQFXXXXbnXFXXXXXXXXXX-16-16.png",
"//img.alicdn.com/tfs/TB1XeDvQFXXXXc5XXXXXXXXXXXX-32-32.png"
],
"title": "蚂蚁花呗",
"url": "//payservice.alipay.com/intro/index.htm?c=hb"
},
{
"icons": [
"//img.alicdn.com/tfs/TB1dvGWQFXXXXcFaXXXXXXXXXXX-16-16.png",
"//img.alicdn.com/tfs/TB1FdDlQFXXXXa5XpXXXXXXXXXX-32-32.png"
],
"title": "集分宝",
"url": "//jf.alipay.com"
}
],
"service": [
{
"desc": "8天退货,退货邮费买家承担",
"icons": [
"//img.alicdn.com/tps/i2/TB1XY_zGpXXXXbeXXXXAz6UFXXX-16-16.png",
null
],
"linkType": 1,
"title": "8天退货"
},
{
"desc": "购买该商品,每笔成交都会有相应金额捐赠给公益。感谢您的支持,愿公益的快乐伴随您每一天。",
"icons": [
"//img.alicdn.com/tfs/TB1wj5PQFXXXXX8apXXXXXXXXXX-16-16.png",
"//img.alicdn.com/tfs/TB13FrcQFXXXXaKXVXXXXXXXXXX-32-32.png"
],
"linkType": 2,
"title": "公益宝贝",
"url": "//service.taobao.com/support/knowledge-1117985.htm?spm=0.0.0.0.bOwpfZ&dkey=searchview"
}
]
},
"dynStock": {
"holdQuantity": 0,
"sellableQuantity": 10968,
"sku": {
";1627207:1580782459;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 24,
"stock": 24
},
";1627207:1580782454;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 456,
"stock": 456
},
";1627207:1580782456;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 436,
"stock": 436
},
";1627207:1580782452;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 102,
"stock": 102
},
";1627207:1580782453;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 9349,
"stock": 9349
},
";1627207:1580782460;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 601,
"stock": 601
}
},
"stock": 10968,
"stockType": "normal"
},
"qrcodeImgUrl": "//gcodex.alicdn.com/qrcode.do?biz_code=xcode&short_name=a.ZRs8&cmd=createSub¶m=id:541869292523;scm:20140619.pc_detail.itemId.0",
"couponActivity": {
"buyerHasMianxi": false,
"coupon": { },
"showMianxiTips": false
},
"soldQuantity": {
"confirmGoodsCount": 0,
"soldTotalCount": 0
},
"promotion": {
"promoData": {
";1627207:1580782459;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
"def": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782454;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782456;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782452;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782453;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
],
";1627207:1580782460;": [
{
"cart": true,
"loginPromotion": false,
"price": "9.90",
"start": false,
"type": "店铺优惠"
}
]
},
"saleDetailMap": { }
}
}
}
{
"code": {
"code": 0,
"message": "SUCCESS"
},
"data": {
"viewer": {
"admin": false,
"bs": "",
"buyDomain": "buy.taobao.com",
"buyerId": "",
"cartDomain": "cart.taobao.com",
"cc": false,
"countryCode": "CN",
"ctUser": false,
"lgin": false,
"serviceTab": "ITEM",
"tkn": "73e34e3a76d31"
},
"deliveryFee": {
"data": {
"areaId": 440300,
"areaName": "广东深圳",
"sendCity": "江苏南京",
"serviceInfo": {
"list": [
{
"id": "100_-4",
"info": "快递 免运费",
"isDefault": true,
"markInfo": "72小时内发货"
}
]
}
},
"dataUrl": "//detailskip.taobao.com/json/deliveryFee.htm",
"message": "ok",
"success": true
},
"activity": { },
"originalPrice": {
";1627207:1580782458;": {
"price": "12.00"
},
";1627207:1580782459;": {
"price": "12.00"
},
";1627207:1580782454;": {
"price": "12.00"
},
"def": {
"price": "12.00"
},
";1627207:1580782455;": {
"price": "12.00"
},
";1627207:1580782456;": {
"price": "12.00"
},
";1627207:1580782452;": {
"price": "12.00"
},
";1627207:1580782453;": {
"price": "12.00"
},
";1627207:1580782460;": {
"price": "12.00"
}
},
"price": "12.00",
"tradeContract": {
"pay": [
{
"icons": [
"//img.alicdn.com/tfs/TB1dvGWQFXXXXcFaXXXXXXXXXXX-16-16.png",
"//img.alicdn.com/tfs/TB1FdDlQFXXXXa5XpXXXXXXXXXX-32-32.png"
],
"title": "集分宝",
"url": "//jf.alipay.com"
}
],
"service": [
{
"desc": "满足7天无理由退换货申请的前提下,包邮商品需要买家承担退货邮费,非包邮商品需要买家承担发货和退货邮费。",
"icons": [
"//img.alicdn.com/tps/i1/T1EQA5FpVgXXceOP_X-16-16.jpg",
null
],
"linkType": 1,
"title": "7天无理由"
}
]
},
"dynStock": {
"holdQuantity": 0,
"sellableQuantity": 12377,
"sku": {
";1627207:1580782458;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 193,
"stock": 193
},
";1627207:1580782459;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 36,
"stock": 36
},
";1627207:1580782454;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 523,
"stock": 523
},
";1627207:1580782455;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 181,
"stock": 181
},
";1627207:1580782456;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 590,
"stock": 590
},
";1627207:1580782452;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 354,
"stock": 354
},
";1627207:1580782453;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 9806,
"stock": 9806
},
";1627207:1580782460;": {
"holdQuantity": 0,
"oversold": false,
"sellableQuantity": 694,
"stock": 694
}
},
"stock": 12377,
"stockType": "normal"
},
"qrcodeImgUrl": "//gcodex.alicdn.com/qrcode.do?biz_code=xcode&short_name=a.ZRs8&cmd=createSub¶m=id:561456069595;scm:20140619.pc_detail.itemId.0",
"couponActivity": {
"buyerHasMianxi": false,
"coupon": { },
"showMianxiTips": false
},
"soldQuantity": {
"confirmGoodsCount": 1,
"soldTotalCount": 4
},
"promotion": {
"promoData": { },
"saleDetailMap": { }
}
}
}
2
001155 257 天前 ♥ 1
2017 年 4 月 6 日 https://detailskip.taobao.com/service/getData/1/p2/item/detail/sib.htm?itemId=528392541802&modules=qrcode,viewer,price,contract,duty,xmpPromotion,dynStock,delivery,upp,sellerDetail,activity,fqg,zjys,coupon&callback=onSibRequestSuccess 请求这个接口一直 403 模拟请求的时候要在 header 设置一下来源页面 referer 属性为你要抓取的宝贝链接 ,就可以成功获取了 header={ "referer":"https://item.taobao.com/item.htm?id=524122865207" } |