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

news2024/11/18 20:00:16

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

展示一下获取成功示例:

1688商品详情页展示

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

响应示例

{
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"
},

 

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1046889.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Typora安装无需破解免费使用

Typora简介&#xff1a; 在介绍Typora软件之前&#xff0c;需要先介绍一下MARKDOWN。 MARKDOWN是一种轻量型标记语言&#xff0c;它具有“极简主义”、高效、清晰、易读、易写、易更改纯文本的特点。 Typora 是一款支持实时预览的 Markdown 文本编辑器。它有 OS X、Windows、…

WebDAV之π-Disk派盘 + 墨阅

墨阅是一款专注于帮助用户离线缓存网页文档图书漫画的免费工具APP。您可以利用墨阅收集来自互联网网站平台的公开文章,图片,漫画等,可以对网页样式进行调整,支持自定义动作,批量离线等功能方便用户日常离线。目前支持小说,markdown,图片,pdf,网页等离线功能。支持进行…

在比特币上支持椭圆曲线 BLS12–381

通过使用智能合约实现来支持任何曲线 BLS12–381 是一种较新的配对友好型椭圆曲线。 与常用的 BN-256 曲线相比&#xff0c;BLS12-381 的安全性明显更高&#xff0c;并且安全目标是 128 位。 所有其他区块链&#xff0c;例如 Zcash 和以太坊&#xff0c;都必须通过硬分叉才能升…

忍不住分享,这个卧室太好看了。

&#x1f4dd;项目信息&#x1d477;&#x1d493;&#x1d490;&#x1d48b;&#x1d486;&#x1d484;&#x1d495; &#x1d48a;&#x1d48f;&#x1d487;&#x1d490;&#x1d493;&#x1d48e;&#x1d482;&#x1d495;&#x1d48a;&#x1d490;&#x1d48f;…

科东软件2023上海工博会:一场科技盛宴的完美收官

9月23日&#xff0c;为期5天的中国国际工业博览会&#xff08;下称“工博会”&#xff09;在国家会展中心&#xff08;上海&#xff09;圆满落幕。这是一场集结全球创新力量与科技创新成果的璀璨盛宴&#xff0c;也是推动未来科技与产业发展的新型工业盛会&#xff0c;更是一次…

多线程(概念介绍)

概念 首先&#xff0c;我们引入一些基本的概念&#xff0c;并结合我们以前所学过的知识&#xff0c;初步对这些概念有个大体的理解 1.线程是一个执行分支&#xff0c;执行粒度比进程更细&#xff0c;调度成本更低 2.线程是进程内部的一个执行流 3.线程是CPU调度的基本单位&…

PLSQL使用技巧

连接配置 先找到配置文件tnsnames.ora地址 我的是这个&#xff08;仅供参考&#xff09;&#xff1a;D:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora IC (DESCRIPTION (ADDRESS_LIST (ADDRESS (PROTOCOL TCP)(HOST 127.0.0.1)(PORT 1521)))(CONNECT_DATA…

易基因:ChIP-seq揭示组蛋白修饰H3K27me3调控高温下棉花的雄性不育机制|Plant Com

大家好&#xff0c;这里是专注表观组学十余年&#xff0c;领跑多组学科研服务的易基因。 气候变化导致极端天气事件更加频繁地发生&#xff0c;包括反常的高温&#xff08;high temperature&#xff0c;HT&#xff09;&#xff0c;HT胁迫对作物的生长发育和产量有严重的负面影…

只需一个简单操作,保障企业电力供应安全性!

随着现代社会对电力供应的不断依赖&#xff0c;不间断电源&#xff08;UPS&#xff09;系统已经成为各种行业的关键基础设施之一。然而&#xff0c;UPS系统的性能监控和管理同样至关重要&#xff0c;以确保它们在需要时能够如期发挥作用。 客户案例 广东某公司是一家制造企业&a…

[python 刷题] 11 Container With Most Water

[python 刷题] 11 Container With Most Water 题目&#xff1a; You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]). Find two lines that together with th…

如何快速学习AdsPower RPA(2)——中级、高级部分

Tool哥继续给大家分享快速学习AdsPower RPA的方法。上一篇在这里&#xff0c;还没看过的小伙伴赶快补课去&#xff1a;如何快速学习AdsPower RPA&#xff08;1&#xff09;——简单、进阶部分 能进入到中级、高级阶段的学习&#xff0c;说明你自学能力超强&#xff01;只要跟着…

联想详解AI导向基础设施 “软硬一体”赋能四大场景

9月25日&#xff0c;联想在杭州举办以“全栈智能 全程陪伴”为主题的新IT思享会&#xff0c;集中展示了联想基于新IT架构的全栈智能产品与服务&#xff0c;引领行业智能变革的强大实力。 当前&#xff0c;以ChatGPT为代表的AI模型席卷全球&#xff0c;不仅实现了AI技术质变性突…

在 Kubernetes 环境中实现证书管理的自动化

原文作者&#xff1a;Jason Schmidt - F5 NGINX 解决方案架构师 原文链接&#xff1a;在 Kubernetes 环境中实现证书管理的自动化 转载来源&#xff1a;NGINX 中文官网 NGINX 唯一中文官方社区 &#xff0c;尽在 nginx.org.cn 有效的 SSL/TLS 证书是现代应用环境的核心要求。但…

Unity制作旋转光束

Unity制作旋转光束 大家好&#xff0c;我是阿赵。 这是一个在很多游戏里面可能都看到过的效果&#xff0c;在传送门、魔法阵、角色等脚底下往上散发出一束拉丝形状的光&#xff0c;然后在不停的旋转。 这次来在Unity引擎里面做一下这种效果。 一、准备材料 需要准备的素材很简…

Django之视图

一&#xff09;文件与文件夹 当我们设定好一个Djiango项目时&#xff0c;里面会有着view.py等文件&#xff0c;也就是文件的方式&#xff1a; 那么我们在后续增加app等时&#xff0c;view.py等文件会显得较为臃肿&#xff0c;当然也根据个人习惯&#xff0c;这时我们可以使用…

Linux下ebtables和iptables

ebtables Ebtables has three tables: filter, nat and broute. The broute table has the BROUTING chain.The filter table has the FORWARD, INPUT and OUTPUT chains.The nat table has the PREROUTING, OUTPUT and POSTROUTING chains. iptables Tables↓/Chains→PREROU…

线上展示越发流行的今天,数字展厅发展有哪些趋势

引言&#xff1a; 二十一世纪的今天&#xff0c;数字化技术在不断的进步&#xff0c;数字展厅也逐渐出现在人们眼前&#xff0c;并成为了现代展示和推广的重要工具。 一&#xff0e;快速了解数字展厅 数字展厅是一种利用数字技术创建的虚拟展示空间&#xff0c;它通过虚拟现实…

Go-Ldap-Admin | Ldap 同步钉钉、企业微信、飞书组织架构实践和部分小坑

目录 一、Docker-compose快速拉起demo测试环境 二、原生部署流程 安装MySQL&#xff1a;5.7数据库 安装openLDAP 修改域名&#xff0c;新增con.ldif 创建一个组织 安装OpenResty 下载后端 下载前端 部署后端 部署前端 三、管理动态字段 钉钉 企业微信 飞书 四、…

GPT如何避免从入门到放弃(一)——认识GPT

第一讲&#xff1a;认识GPT GPT的全称&#xff1a;Generative Pre-trained Transformer——生成式 预训练 变换模型 GPT&#xff08;Generative Pre-trained Transformer&#xff09;是一种基于Transformer架构的大型语言模型。它由OpenAI开发&#xff0c;并在不同版本中不断…

QQ怎么上传大于1G的视频啊?视频压缩这样做

当我们想要在QQ上分享一段大容量的视频时&#xff0c;往往会因为超过1G的限制而感到无助。不过&#xff0c;不用担心&#xff0c;今天我们将为你介绍三种可以压缩视频大小的方法&#xff0c;一起来看看吧~ 一、嗨格式压缩大师 嗨格式压缩大师是一款专业的视频压缩软件&#xf…