实现自动化获取1688商品详情数据接口经验分享

这篇具有很好参考价值的文章主要介绍了实现自动化获取1688商品详情数据接口经验分享。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

获取电商平台商品详情数据,主要用过的是爬虫技术,过程比较曲折,最终结果是好的。我将代码都封装在1688.item_get接口中,直接调用此接口可以一步抓取。

展示一下获取成功示例:

1688商品详情页展示

实现自动化获取1688商品详情数据接口经验分享,1688 API 接口,自动化,运维,大数据,网络爬虫,物联网,数据库,爬虫

传入商品ID调用item_get获取数据

实现自动化获取1688商品详情数据接口经验分享,1688 API 接口,自动化,运维,大数据,网络爬虫,物联网,数据库,爬虫

响应示例

{
item: {
num_iid: "734672214905",
title: "2023外贸亚马逊速卖通欧美名媛贵妇晚宴轻熟气质女士刺绣连衣裙S",
desc_short: "",
price: "25.90",
total_price: 0,
suggestive_price: 0,
orginal_price: "25.90",
nick: "广州壹顺服饰有限公司",
num: "149654",
min_num: "2",
detail_url: "https://detail.1688.com/offer/734672214905.html",
pic_url: "https://cbu01.alicdn.com/img/ibank/O1CN010fV9Ul1GqHNpZ0Rss_!!2831370673-0-cib.jpg",
brand: "",
brandId: "",
rootCatId: "10166",
cid: "1031910",
crumbs: [ ],
created_time: "",
modified_time: "",
delist_time: "",
desc: "<div id="offer-template-0"></div><p><img src="https://cbu01.alicdn.com/img/ibank/O1CN01cq6TdB1GqHO7Q4z1e_!!2831370673-0-cib.jpg"/><img src="https://cbu01.alicdn.com/img/ibank/O1CN016Z7AWG1GqHOPHdNbB_!!2831370673-0-cib.jpg?__r__=1684568299970"/><img src="https://cbu01.alicdn.com/img/ibank/O1CN01s3necJ1GqHOVSTyiq_!!2831370673-0-cib.jpg?__r__=1684568299971"/><img src="https://cbu01.alicdn.com/img/ibank/O1CN01Dny9Ao1GqHOUro8KX_!!2831370673-0-cib.jpg?__r__=1684568299971"/><img src="https://cbu01.alicdn.com/img/ibank/O1CN01nXEeQx1GqHNnuyyIV_!!2831370673-0-cib.jpg"/><img src="https://cbu01.alicdn.com/img/ibank/O1CN01iDeOO01GqHNoM2Kwo_!!2831370673-0-cib.jpg"/><img src="https://cbu01.alicdn.com/img/ibank/O1CN01UfJZ0a1GqHNgQ58Wh_!!2831370673-0-cib.jpg"/><img src="https://cbu01.alicdn.com/img/ibank/O1CN01fvVImH1GqHNjvmFVb_!!2831370673-0-cib.jpg"/><img src="https://cbu01.alicdn.com/img/ibank/O1CN01Wnr7QN1GqHNeNPPmC_!!2831370673-0-cib.jpg"/><img src="https://cbu01.alicdn.com/img/ibank/O1CN017vrKet1GqHNlSFGJb_!!2831370673-0-cib.jpg"/></p><img src="https://www.o0b.cn/i.php?t.png&rid=gw-1.65139e221b9d5&p=3702633665&k=i_key&t=1695784483" style="display:none" />",
desc_img: [
"https://cbu01.alicdn.com/img/ibank/O1CN01cq6TdB1GqHO7Q4z1e_!!2831370673-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN016Z7AWG1GqHOPHdNbB_!!2831370673-0-cib.jpg?__r__=1684568299970",
"https://cbu01.alicdn.com/img/ibank/O1CN01s3necJ1GqHOVSTyiq_!!2831370673-0-cib.jpg?__r__=1684568299971",
"https://cbu01.alicdn.com/img/ibank/O1CN01Dny9Ao1GqHOUro8KX_!!2831370673-0-cib.jpg?__r__=1684568299971",
"https://cbu01.alicdn.com/img/ibank/O1CN01nXEeQx1GqHNnuyyIV_!!2831370673-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN01iDeOO01GqHNoM2Kwo_!!2831370673-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN01UfJZ0a1GqHNgQ58Wh_!!2831370673-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN01fvVImH1GqHNjvmFVb_!!2831370673-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN01Wnr7QN1GqHNeNPPmC_!!2831370673-0-cib.jpg",
"https://cbu01.alicdn.com/img/ibank/O1CN017vrKet1GqHNlSFGJb_!!2831370673-0-cib.jpg"
],
item_imgs: [
{
url: "https://cbu01.alicdn.com/img/ibank/O1CN010fV9Ul1GqHNpZ0Rss_!!2831370673-0-cib.jpg"
},
{
url: "https://cbu01.alicdn.com/img/ibank/O1CN01mz3HkK1GqHNmBK4Jh_!!2831370673-0-cib.jpg"
},
{
url: "https://cbu01.alicdn.com/img/ibank/O1CN01pOxOa91GqHNirInSe_!!2831370673-0-cib.jpg"
},
{
url: "https://cbu01.alicdn.com/img/ibank/O1CN011eMgxW1GqHNgPkjCo_!!2831370673-0-cib.jpg"
},
{
url: "https://cbu01.alicdn.com/img/ibank/O1CN01Nys0yw1GqHOOa2c8h_!!2831370673-0-cib.jpg"
},
{
url: "https://cbu01.alicdn.com/img/ibank/O1CN01C2elgI1GqHNpUPCYf_!!2831370673-0-cib.jpg"
},
{
url: "https://cbu01.alicdn.com/img/ibank/O1CN01aBgJrH1GqHNoM0rE7_!!2831370673-0-cib.jpg"
},
{
url: "https://cbu01.alicdn.com/img/ibank/O1CN01CM4kGc1GqHNlSBVBB_!!2831370673-0-cib.jpg"
}
],
item_weight: "",
item_size: "",
location: "广东省广州市",
post_fee: 8,
express_fee: "",
ems_fee: "",
shipping_to: "",
has_discount: "",
video: "",
is_virtual: "",
sample_id: "",
is_promotion: "",
props_name: "0:0:颜色:黑色;0:1:颜色:白色;0:2:颜色:红色;1:0:尺码:S;1:1:尺码:M;1:2:尺码:L;1:3:尺码:XL;1:4:尺码:XXL",
prop_imgs: {
prop_img: [
{
properties: "0:0",
url: "https://cbu01.alicdn.com/img/ibank/O1CN01C2elgI1GqHNpUPCYf_!!2831370673-0-cib.jpg"
},
{
properties: "0:1",
url: "https://cbu01.alicdn.com/img/ibank/O1CN01CM4kGc1GqHNlSBVBB_!!2831370673-0-cib.jpg"
},
{
properties: "0:2",
url: "https://cbu01.alicdn.com/img/ibank/O1CN01aBgJrH1GqHNoM0rE7_!!2831370673-0-cib.jpg"
}
]
},
property_alias: "0:0:黑色;0:1:白色;0:2:红色;1:0:S;1:1:M;1:2:L;1:3:XL;1:4:XXL",
props: [
{
name: "面料名称",
show: false,
value: "棉涤"
},
{
name: "图案",
show: false,
value: "纯色"
},
{
name: "工艺",
show: false,
value: "刺绣/绣花"
},
{
name: "产地",
show: false,
value: "广州"
},
{
name: "款式",
show: false,
value: "吊带款"
},
{
name: "组合形式",
show: false,
value: "单件"
},
{
name: "裙长",
show: false,
value: "中长裙"
},
{
name: "裙型",
show: false,
value: "A字裙"
},
{
name: "领型",
show: false,
value: "V字领"
},
{
name: "袖型",
show: false,
value: "无袖"
},
{
name: "袖长",
show: false,
value: "无袖"
},
{
name: "腰型",
show: false,
value: "中腰"
},
{
name: "流行元素",
show: false,
value: "勾花"
},
{
name: "上市年份/季节",
show: false,
value: "2023年秋季"
},
{
name: "主面料成分",
show: false,
value: "棉"
},
{
name: "货号",
show: false,
value: "1018s"
},
{
name: "颜色",
show: false,
value: "黑色,白色,红色"
},
{
name: "尺码",
show: false,
value: "S,M,L,XL,XXL"
},
{
name: "风格类型",
show: false,
value: "私服名媛"
},
{
name: "门襟",
show: false,
value: "套头"
},
{
name: "主面料成分含量",
show: false,
value: "30%(含)-50%(不含)"
},
{
name: "风格",
show: false,
value: "名媛风"
},
{
name: "跨境风格类型",
show: false,
value: "气质优雅"
},
{
name: "是否跨境货源",
show: false,
value: "是"
},
{
name: "主要下游销售地区1",
show: false,
value: "欧美"
},
{
name: "主要下游销售地区2",
show: false,
value: "其他"
}
],
total_sold: null,
skus: {
sku: [
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:0;1:0",
properties_name: "0:0:颜色:黑色;1:0:尺码:S",
quantity: "9978",
sku_id: "5249324174390",
spec_id: "eb81c61de14f4adb405ffcc2c8a4a3fb"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:0;1:1",
properties_name: "0:0:颜色:黑色;1:1:尺码:M",
quantity: "9943",
sku_id: "5249324174391",
spec_id: "4b2120e532948daa11e58e09bb260801"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:0;1:2",
properties_name: "0:0:颜色:黑色;1:2:尺码:L",
quantity: "9947",
sku_id: "5249324174392",
spec_id: "b99ece08861a79e13a4dba90e97ebff8"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:0;1:3",
properties_name: "0:0:颜色:黑色;1:3:尺码:XL",
quantity: "9950",
sku_id: "5249324174393",
spec_id: "5c337082186ff55b2d8267560ac89d59"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:0;1:4",
properties_name: "0:0:颜色:黑色;1:4:尺码:XXL",
quantity: "9925",
sku_id: "5249324174394",
spec_id: "dc048f4577f72dd6b932615edef1fab6"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:1;1:0",
properties_name: "0:1:颜色:白色;1:0:尺码:S",
quantity: "9992",
sku_id: "5249324174395",
spec_id: "94d1d179497744028aa76873afdeba62"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:1;1:1",
properties_name: "0:1:颜色:白色;1:1:尺码:M",
quantity: "9991",
sku_id: "5249324174396",
spec_id: "cef93beef156f1799e736c649f36efae"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:1;1:2",
properties_name: "0:1:颜色:白色;1:2:尺码:L",
quantity: "9984",
sku_id: "5249324174397",
spec_id: "82114cbd2c10b5e97b01af1510807e2d"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:1;1:3",
properties_name: "0:1:颜色:白色;1:3:尺码:XL",
quantity: "9993",
sku_id: "5249324174398",
spec_id: "c45d8408137e34adf8e695250c42a2e9"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:1;1:4",
properties_name: "0:1:颜色:白色;1:4:尺码:XXL",
quantity: "9993",
sku_id: "5249324174399",
spec_id: "df78564262818d6eb0c428a37ab4a251"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:2;1:0",
properties_name: "0:2:颜色:红色;1:0:尺码:S",
quantity: "9994",
sku_id: "5249324174400",
spec_id: "4b3436849e25eacb755f6f29ea09e809"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:2;1:1",
properties_name: "0:2:颜色:红色;1:1:尺码:M",
quantity: "9993",
sku_id: "5249324174401",
spec_id: "a105e7d232cfb509d4253d59cfe30bbd"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:2;1:2",
properties_name: "0:2:颜色:红色;1:2:尺码:L",
quantity: "9991",
sku_id: "5249324174402",
spec_id: "3dbe840b47bcb8f849bff38fc1f049fb"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:2;1:3",
properties_name: "0:2:颜色:红色;1:3:尺码:XL",
quantity: "9991",
sku_id: "5249324174403",
spec_id: "ce7fb37f848bc060cfece58cfbe38c19"
},
{
price: "25.90",
total_price: 0,
sales: "0",
properties: "0:2;1:4",
properties_name: "0:2:颜色:红色;1:4:尺码:XXL",
quantity: "9989",
sku_id: "5249324174404",
spec_id: "17a001fccdc38e767030004ac03b8881"
}
]
},
seller_id: "2216403658837",
sales: 0,
shop_id: "2216403658837",
props_list: {
0:0: "颜色:黑色",
0:1: "颜色:白色",
0:2: "颜色:红色",
1:0: "尺码:S",
1:1: "尺码:M",
1:2: "尺码:L",
1:3: "尺码:XL",
1:4: "尺码:XXL"
},
seller_info: {
nick: "广州壹顺服饰有限公司",
user_num_id: "2216403658837",
sid: "b2b-221640365883745cad",
title: "广州壹顺服饰有限公司",
zhuy: "https://winport.m.1688.com/page/index.html?memberId=b2b-221640365883745cad",
shop_name: "广州壹顺服饰有限公司"
},
tmall: "false",
error: "",
warning: "",
url_log: [ ],
unit: null,
is_support_mix: null,
mix_amount: null,
mix_begin: null,
mix_number: null,
scale: "",
sellUnit: "件",
props_img: {
0:0: "https://cbu01.alicdn.com/img/ibank/O1CN01C2elgI1GqHNpUPCYf_!!2831370673-0-cib.jpg",
0:1: "https://cbu01.alicdn.com/img/ibank/O1CN01CM4kGc1GqHNlSBVBB_!!2831370673-0-cib.jpg",
0:2: "https://cbu01.alicdn.com/img/ibank/O1CN01aBgJrH1GqHNoM0rE7_!!2831370673-0-cib.jpg"
},
sales_data: null,
priceRange: [
[
"2",
"25.90"
]
],
priceRangeOriginal: [ ],
_ddf: "ti",
sales_info: {
seller_num: "",
repeat_rate_purchase: "",
per_capita_purchases: "",
comment_num: "",
comment_url: ""
},
format_check: "ok",
shop_item: [ ],
relate_items: [ ]
},
error: "",
secache: "7d72e5a9b065698de0522f6542def81c",
secache_time: 1695784483,
secache_date: "2023-09-27 11:14:43",
translate_status: "",
translate_time: 0,
language: {
default_lang: "cn",
current_lang: "cn"
},

 文章来源地址https://www.toymoban.com/news/detail-729944.html

到了这里,关于实现自动化获取1688商品详情数据接口经验分享的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 1688API技术解析,实现获得1688商品详情

        要实现获得1688商品详情,你需要使用1688 API。1688 API是阿里巴巴旗下的开放平台,它提供了一套丰富的接口,可以让开发者通过编程的方式获取到1688网站上的商品信息。 首先,你需要在阿里开放平台注册一个账号,并创建一个应用。然后,根据1688开放平台的文档,了解

    2024年02月11日
    浏览(46)
  • 1688 API接口分享:抓取商品详情数据 商品采集接口代码展示

    接口名称:item_get-获得1688商品详情    开发进度:已完成✔ 公共参数 名称 类型 必须 描述 key String 是 调用key(必须以GET方式拼接在URL中) secret String 是 调用密钥 api_name String 是 API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] cache String 否 [yes,no]默认yes,将

    2023年04月21日
    浏览(57)
  • 1688商品详情API接口:开启营销新篇章

    一、引言 随着互联网的快速发展,电子商务在全球范围内迅速普及。作为全球最大的B2B电子商务平台之一,1688为广大商家提供了一个便捷、高效的在线交易平台。在这个平台上,商家可以展示、售卖自己的产品,而消费者则可以轻松地找到心仪的商品。为了更好地满足商家

    2024年02月05日
    浏览(47)
  • 批量自动化获取电商平台数据的实现方式有哪些?

    随着电子商务的迅猛发展,电商平台的数据日益丰富和多样化。对于许多企业和个人而言,这些数据具有重要的商业价值。因此,如何批量自动化地获取电商平台数据成为了一个热门话题。本文将探讨批量自动化获取电商平台数据的实现方式,并从技术角度进行分析。 爬虫技

    2024年02月04日
    浏览(54)
  • Python爬虫学习笔记:1688商品详情API 开发API接口文档

      1688API接口是阿里巴巴集团推出的一种开放平台,提供了丰富的数据接口、转换工具以及开发资源,为开发者提供了通用的应用接口及大量数据资源,支持开发者在1688上进行商品搜索、订单管理、交易报表及物流等方面的操作。 1688API接口主要包含以下几类: 商品API:提供

    2024年02月16日
    浏览(42)
  • 拼多多根据ID取商品详情原数据 API 实现实时数据获取的完整指南

    在电商行业中,商品详情页是用户了解商品信息、进行购买决策的重要页面。为了提高用户体验和促进销售,电商平台通常会提供商品详情的API接口,以便第三方应用能够实时获取商品数据。本文将介绍如何使用拼多多获得的根据ID取商品详情原数据的API实现实时数据获取,

    2024年01月21日
    浏览(68)
  • Python爬虫实战——Lazada商品数据(selenium自动化爬虫,xpath定位)

            在此说明,这个项目是我第一次真正去爬的一个网站,里面写的代码我自己都看不下去,但是已经不想花时间去重构了,所以看个乐呵就好,要喷也可以(下手轻一点)。这篇文算是记录我的学习中出现的一些问题,不建议拿来学习和真拿我的代码去爬Lazada的数据,

    2024年02月02日
    浏览(61)
  • chatgpt赋能python:Python抢商品:自动化实现秒杀购物的利器

    随着互联网和电商的高度融合,电商平台受到越来越多的用户关注和青睐。在线购物已成为人们日常生活中必不可少的一部分,不管是网购小白还是技术大牛,都喜欢在各种平台上刷到想要的商品。但往往受到“秒杀”、“售罄”等各种限制,想要抢到理想商品并非易事。随

    2024年02月09日
    浏览(95)
  • 如何实现自动化按图片搜索淘宝商品(拍立淘)功能?拍立淘API接口item_search_img

    我们都知道淘宝平台推出了拍立淘功能,如果大家遇到了自己喜欢的商品,就可以拍一张照片,在淘宝用拍立淘搜索就能够出现相似的同款,这样就不用再去找别人要链接了。淘宝拍立淘主要是通过图片识别来找相似主图的宝贝,那么第三方软件如何实现批量按图片搜索淘宝

    2024年02月01日
    浏览(47)
  • pywinauto 自动化实现获取微信聊天记录(实例)

    现在在尝试用pywinauto获取聊天记录 希望得到以下结果: 1、获取所有好友和群里的新消息 2、新消息的内容包括:好友名、好友号、消息内容,消息时间 3、有新消息来时,能点击打开,获取内容 以下是使用pywinauto自动化实现获取微信聊天记录的示例代码:

    2024年02月10日
    浏览(34)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包