唯品会商品采集需要用到哪些API?教你用python爬取唯品会商品信息,详细教程,仅供学习

唯品会是中国领先的在线特卖会电商平台之一,它以“品牌特卖会”的模式运营,为会员提供品牌折扣商品。唯品会的商品包括服装、鞋类、箱包、美妆、家居、母婴、食品等各类品牌产品。

这就是今天的受害者,我们要拿取上面的泳衣数据,然后可以做些数据可视化。

数据来源分析

1. 明确需求

  • 明确采集网站以及数据
    网址: https://category.vip.com/suggest.php?keyword=%E6%B3%B3%E8%A1%A3&ff=235|12|1|1
    数据: 商品信息

2. 抓包分析:通过浏览器自带工具: 开发者工具

  • 打开开发者工具: F12 / 右键点击检查选择network

  • 刷新网页: 让网页数据重新加载一遍

  • 搜索关键字: 搜索数据在哪里
    找到数据包: 50条商品数据信息
    整页数据内容: 120条 --> 分成三个数据包
    1. 前50条数据 --> 前50个商品ID
    2. 中50条数据 --> 中50个商品ID
    3. 后20条数据 --> 后20个商品ID

已知: 数据分为三组 --> 对比三组数据包请求参数变化规律
请求参数变化规律: 商品ID
分析找一下 是否存在一个数据包, 包含所有商品ID

如果想要获取商品信息 --> 先获取所有商品ID --> ID存在数据包

代码实现步骤: 发送请求 -> 获取数据 -> 解析数据 -> 保存数据

API名称:item_get

通过商品ID获取此商品的详情信息,包括商品标题、价格、主图、详情图、销量等。

API名称:item_search

通过输入关键字搜索商品列表,批量获取商品ID。注册账号获取APIkey

请求示例

1、Python调用关键字搜索接口item_search

# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://api-gw.seaver.cn/vip/item_search/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&q=鞋子&start_price=&end_price=&page=&cat=&discount_only=&sort=&page_size=&seller_info=&nick=&ppath="
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)

2、响应示例(关键字搜索接口返回数据是千人千面的)

"items": {
		"url": "https://category.vip.com/suggest.php?keyword=鞋子&page=1",
		"keyword": "鞋子",
		"page": "1",
		"real_total_results": 3200,
		"total_results": 3200,
		"pagecount": 64,
		"products_total": "",
		"list_count": "",
		"page_size": 50,
		"item": [
			{
				"num_iid": "6920498614015980820",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920498614015980820.html",
				"title": "【热卖新款】23秋季新款女鞋百搭小白鞋女可爱风板鞋女厚底增高",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0902/153/76a645b6-8772-483f-8730-816499d8d6fe.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920456464238903825",
				"detail_url": "https://detail.vip.com/detail-1712350481-6920456464238903825.html",
				"title": "【断码捡漏】时尚拼色厚底鞋女韩系百搭低帮板鞋舒适运动休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/07/12/133/21e40750-7feb-42e2-bb60-e9a0a69b1d07.jpg",
				"price": "59",
				"promotion_price": "59",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920515780805661576",
				"detail_url": "https://detail.vip.com/detail-1710614536-6920515780805661576.html",
				"title": "【商家畅销款】秋冬新款轻便复古男式运动跑鞋畅跑男跑步鞋男鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/103623/2023/0822/119/ed9f8493-19a3-4979-a71e-1802c84b435f.jpg",
				"price": "139",
				"promotion_price": "139",
				"sales": 0,
				"area": "",
				"seller_nick": "361°"
			},
			{
				"num_iid": "6920556548672220765",
				"detail_url": "https://detail.vip.com/detail-1711324061-6920556548672220765.html",
				"title": "【秋冬上新】时尚百搭跑步鞋男舒适透气男鞋潮流运动鞋男休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/09/20/26/82fb04f2-1c16-4288-8457-e955bbe2a943.jpg",
				"price": "75",
				"promotion_price": "75",
				"sales": 0,
				"area": "",
				"seller_nick": "回力1927"
			},
			{
				"num_iid": "6920221768845198679",
				"detail_url": "https://detail.vip.com/detail-1710614103-6920221768845198679.html",
				"title": "厚底小白鞋女23年新款老爹鞋女百搭休闲运动鞋增高女鞋子",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/02/01/197/29b8edc7-eb01-4c1e-9a00-198bc7fac79a.jpg",
				"price": "79",
				"promotion_price": "79",
				"sales": 0,
				"area": "",
				"seller_nick": "人本"
			},
			{
				"num_iid": "6920472626815395348",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920472626815395348.html",
				"title": "【热卖潮鞋】23秋季新款飞织透气运动鞋男舒适耐磨休闲跑步鞋男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0724/55/c3bbeae5-be65-457f-a106-d14daa87d7ec.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920393993806723089",
				"detail_url": "https://detail.vip.com/detail-1712350481-6920393993806723089.html",
				"title": "【热卖爆款】拼接鞋面厚底小白鞋女拼色潮流低帮板鞋百搭休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/05/30/62/2ff80bfb-1314-4ebf-9344-c0b13a075a31.jpg",
				"price": "69",
				"promotion_price": "69",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920282808251529437",
				"detail_url": "https://detail.vip.com/detail-1711324061-6920282808251529437.html",
				"title": "【加绒保暖】23秋冬新款厚底跑步运动鞋潮流百搭皮面男鞋棉鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/03/17/71/d6e37829-1e5a-425d-ae89-5bbeeb817431.jpg",
				"price": "99",
				"promotion_price": "99",
				"sales": 0,
				"area": "",
				"seller_nick": "回力1927"
			},
			{
				"num_iid": "6920243623832758363",
				"detail_url": "https://detail.vip.com/detail-1710614619-6920243623832758363.html",
				"title": "【热卖爆款】2023秋季新款低帮板鞋潮流休闲运动鞋小白鞋男鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/109602/2023/0216/102/4db76676-5c74-47b4-84c0-136870604938.jpg",
				"price": "122",
				"promotion_price": "122",
				"sales": 0,
				"area": "",
				"seller_nick": "木林森"
			},
			{
				"num_iid": "6920017409905248734",
				"detail_url": "https://detail.vip.com/detail-1710613854-6920017409905248734.html",
				"title": "【热销爆款】女鞋时尚撞色高帮厚底鞋女松紧带板鞋女运动休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2022/09/13/174/871aee89-c0e1-4714-ab1b-69f85ec8b482.jpg",
				"price": "199",
				"promotion_price": "199",
				"sales": 0,
				"area": "",
				"seller_nick": "红蜻蜓"
			},
			{
				"num_iid": "6920523407423045252",
				"detail_url": "https://detail.vip.com/detail-1710615620-6920523407423045252.html",
				"title": "23年秋冬新款男士运动休闲鞋抽带男休闲鞋男鞋子",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/08/28/145/1cac8d2a-08af-4d84-b33b-50801b445ee1.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "稻草人"
			},
			{
				"num_iid": "6920502658724152263",
				"detail_url": "https://detail.vip.com/detail-1711544295-6920502658724152263.html",
				"title": "23年新品女鞋春季小白鞋厚底板鞋百搭复古运动鞋女学生潮鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/632229/2023/0812/32/87929385-f1bf-4071-ac0b-348b58009dcd.jpg",
				"price": "79",
				"promotion_price": "79",
				"sales": 0,
				"area": "",
				"seller_nick": "人本1986"
			},
			{
				"num_iid": "6920392779787360020",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920392779787360020.html",
				"title": "【热卖上新】23秋季男鞋舒适透气休闲鞋男潮流板鞋耐磨小白鞋男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0530/29/58a094a2-e020-4f04-93aa-3c1b32c2a24b.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920168154607487302",
				"detail_url": "https://detail.vip.com/detail-1710614694-6920168154607487302.html",
				"title": "百搭爆款运动小白鞋女2023春季新款厚底增高休闲板鞋女",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2022/12/29/191/9f62bcae-9077-49db-8dd0-57d61a02de64.jpg",
				"price": "64.9",
				"promotion_price": "64.9",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920533160478590921",
				"detail_url": "https://detail.vip.com/detail-1711216169-6920533160478590921.html",
				"title": "【舒适男鞋透气马丁靴】23秋季新款休闲跑步运动靴百搭鞋工装靴",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/618589/2023/0904/122/ad9f6cfe-18f1-4249-942e-83e2b51f35bf.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920482725127390877",
				"detail_url": "https://detail.vip.com/detail-1711324061-6920482725127390877.html",
				"title": "【热卖爆款】秋季厚底女低帮板鞋学院风舒适百搭韩系运动休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/07/31/46/fa78cee3-e360-40aa-9792-abbd21d1e1b2.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力1927"
			},
			{
				"num_iid": "6920484210203739668",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920484210203739668.html",
				"title": "【舒适运动】23秋季新款男鞋韩版休闲鞋男软底耐磨老爹鞋男潮鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0801/147/24348f0e-217a-4910-a4fb-4201119ca049.jpg",
				"price": "69",
				"promotion_price": "69",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920355209184956756",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920355209184956756.html",
				"title": "一脚蹬赖人鞋男23秋新款男鞋百搭小白鞋男简约运动休闲鞋男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0504/11/411a4151-9a21-45f2-a203-ba9b9f4b9192.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920517415908700948",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920517415908700948.html",
				"title": "【热卖新品】23秋季新款男鞋舒适耐磨篮球鞋男增高运动休闲鞋男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0824/64/2a2837b4-6546-4756-8e72-d4a475ee7f68.jpg",
				"price": "98",
				"promotion_price": "98",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920495676676423697",
				"detail_url": "https://detail.vip.com/detail-1712350481-6920495676676423697.html",
				"title": "【热卖上新】简约时尚小白鞋女厚底增高老爹鞋舒适网面运动休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/08/09/46/5748582c-5af8-4610-a7a3-6168814c5a18.jpg",
				"price": "79",
				"promotion_price": "79",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920273908476262484",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920273908476262484.html",
				"title": "【热卖新品】舒适耐磨跑步鞋男时尚百搭男鞋潮流休闲运动鞋男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0309/41/5bc37347-8ce9-4d40-9de8-f91ec0e910b3.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920472234204462921",
				"detail_url": "https://detail.vip.com/detail-1711216169-6920472234204462921.html",
				"title": "【舒适透气小白鞋男鞋】秋季爆款潮流百搭运动鞋男士轻便休闲板鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/618589/2023/0724/104/32a382be-7325-4bbd-a340-376ce6146d96.jpg",
				"price": "79",
				"promotion_price": "79",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920507275093508113",
				"detail_url": "https://detail.vip.com/detail-1712350481-6920507275093508113.html",
				"title": "【断码捡漏】秋季软底舒适女低帮板鞋简约小白鞋百搭休闲运动鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/653204/2023/0817/42/da06fe27-b1a9-480e-914d-0651c753fa39.jpg",
				"price": "59",
				"promotion_price": "59",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920543684992883153",
				"detail_url": "https://detail.vip.com/detail-1712350481-6920543684992883153.html",
				"title": "【爆款上新】秋季ins百搭学院风厚底板鞋女时尚低帮运动休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/653204/2023/0911/58/b6102922-567a-47d3-a9c8-228b74137bd2.jpg",
				"price": "69",
				"promotion_price": "69",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920453315110872340",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920453315110872340.html",
				"title": "【热卖女鞋】2023秋季新款舒适百搭休闲鞋女厚底小白鞋女板鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0710/171/828f1d75-0035-4170-b019-45651c64a7a1.jpg",
				"price": "96",
				"promotion_price": "96",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920507275093598225",
				"detail_url": "https://detail.vip.com/detail-1712350481-6920507275093598225.html",
				"title": "【秋季热卖】韩系学院风时尚厚底老爹鞋女百搭透气舒适运动休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/08/17/195/e80eaaea-edda-4e75-9c14-afdc9687f6aa.jpg",
				"price": "69",
				"promotion_price": "69",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920534978660777428",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920534978660777428.html",
				"title": "【经典款小白鞋】23秋季新款男鞋轻便软底休闲鞋男舒适百搭板鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0905/89/da6e616a-82c5-4378-8f4f-6dbc67c19dd3.jpg",
				"price": "69",
				"promotion_price": "69",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920163731143594112",
				"detail_url": "https://detail.vip.com/detail-1712204928-6920163731143594112.html",
				"title": "板鞋男鞋2023年春秋季爆款百搭休闲鞋男士时尚潮鞋舒适运动鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/651730/2022/1220/63/6768d339-7bda-4949-92e6-3d0d62abda7d.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920485682816567508",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920485682816567508.html",
				"title": "【秋季新品】23新款男鞋轻便舒适休闲鞋男耐磨舒适板鞋男小白鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0802/149/2ca48bc5-c1ef-4239-b597-3d22896d269c.jpg",
				"price": "98",
				"promotion_price": "98",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920504427344534857",
				"detail_url": "https://detail.vip.com/detail-1711216169-6920504427344534857.html",
				"title": "【舒适男鞋透气中帮小白鞋】秋季爆款潮流百搭运动鞋男士休闲板鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/618589/2023/0815/133/294c2988-568a-459e-adcc-fc8bef3f8ac6.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920583863154833091",
				"detail_url": "https://detail.vip.com/detail-1711736419-6920583863154833091.html",
				"title": "【秋冬新品】中帮日常休闲鞋男潮流男鞋时尚腰果花板鞋男运动鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/10/08/136/f9e3c7fb-c677-4700-b436-c57044358bd3.jpg",
				"price": "66",
				"promotion_price": "66",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920539287028451156",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920539287028451156.html",
				"title": "【热卖上新】23秋季新款男鞋舒适增高休闲运动鞋男厚底高帮潮鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0908/73/30313aeb-e21c-4848-bf1f-f3a65a7680d6.jpg",
				"price": "98",
				"promotion_price": "98",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920040322325242192",
				"detail_url": "https://detail.vip.com/detail-1711713328-6920040322325242192.html",
				"title": "秋季爆款百搭简约男鞋舒适时尚休闲鞋男款厚底低帮轻便运动鞋子男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/637280/2023/0511/40/8fd1ed93-e80d-44fa-ab51-375aaf65acc9.jpg",
				"price": "53.9",
				"promotion_price": "53.9",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920555163664762260",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920555163664762260.html",
				"title": "【舒适耐穿】23秋季新款男鞋耐磨防滑劳保鞋男百搭时尚休闲鞋男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0919/121/f20949e8-eb84-441e-b3c2-64a975d6e57e.jpg",
				"price": "99",
				"promotion_price": "99",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920026144016386376",
				"detail_url": "https://detail.vip.com/detail-1711726664-6920026144016386376.html",
				"title": "男鞋轻便秋季学生休闲运动鞋男高帮男士运动鞋老爹鞋男舒适鞋子男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2022/09/18/74/aa79059b-3dea-4da1-900c-c6c95c5db002.jpg",
				"price": "115",
				"promotion_price": "115",
				"sales": 0,
				"area": "",
				"seller_nick": "AEX ACHIEVE EXCELLENCE"
			},
			{
				"num_iid": "6920393993823627281",
				"detail_url": "https://detail.vip.com/detail-1712350481-6920393993823627281.html",
				"title": "【热销上新】时尚简约小白鞋女舒适平底鞋百搭低帮板鞋运动休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/05/30/10/27cf6e31-53b9-4088-ba24-7fdd87d1b73b.jpg",
				"price": "69",
				"promotion_price": "69",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920465367103122816",
				"detail_url": "https://detail.vip.com/detail-1712471648-6920465367103122816.html",
				"title": "23新品秋冬季情侣款小众时尚面包鞋板鞋运动休闲鞋街头潮鞋男女",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/655136/2023/0829/35/d971ce6b-cdcc-407d-9ea8-712915fa00f8.jpg",
				"price": "99",
				"promotion_price": "99",
				"sales": 0,
				"area": "",
				"seller_nick": "双星八特"
			},
			{
				"num_iid": "6920545219136176464",
				"detail_url": "https://detail.vip.com/detail-1711713328-6920545219136176464.html",
				"title": "男款休闲鞋2023秋季轻便百搭板鞋男休闲时尚跑步鞋耐磨运动鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/655677/2023/0907/27/bb3eb12f-b48a-495d-b657-3953394ba54d.jpg",
				"price": "98",
				"promotion_price": "98",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920020357024454856",
				"detail_url": "https://detail.vip.com/detail-1710614536-6920020357024454856.html",
				"title": "新款保暖男式加毛跑鞋男式运动跑鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/103623/2022/0915/88/cf0c2035-ea65-4da4-ad45-b1375f65b7de.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "361°"
			},
			{
				"num_iid": "6920587194732743325",
				"detail_url": "https://detail.vip.com/detail-1711324061-6920587194732743325.html",
				"title": "【热卖上新】轻便男包底鞋舒适秋冬鞋子男潮流百搭运动鞋男休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/10/11/101/07e81b48-13d3-4e40-b104-7b24867fcbfb.jpg",
				"price": "66",
				"promotion_price": "66",
				"sales": 0,
				"area": "",
				"seller_nick": "回力1927"
			},
			{
				"num_iid": "6919990899226933531",
				"detail_url": "https://detail.vip.com/detail-1710614043-6919990899226933531.html",
				"title": "QIAODAN秋冬运动鞋男缓冲吸震耐磨防滑轻盈跑步鞋革面款",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/146645/2022/0825/178/ee6bb8f4-1573-4419-88ed-3667819f17bc.jpg",
				"price": "119",
				"promotion_price": "119",
				"sales": 0,
				"area": "",
				"seller_nick": "乔丹"
			},
			{
				"num_iid": "6920393994026866705",
				"detail_url": "https://detail.vip.com/detail-1712350481-6920393994026866705.html",
				"title": "【热销新款】秋季潮流男士小白鞋百搭时尚低帮板鞋运动休闲鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2023/05/30/53/1d397724-863e-4e0d-902e-5e7a8c356bc9.jpg",
				"price": "69",
				"promotion_price": "69",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6919972762107195534",
				"detail_url": "https://detail.vip.com/detail-1710940462-6919972762107195534.html",
				"title": "椰子鞋秋季运动鞋网面男鞋黑色软底透气休闲运动鞋男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/2022/08/12/194/1c501f19-b59f-486b-98d4-3934bd0200f9.jpg",
				"price": "88",
				"promotion_price": "88",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920392779888318228",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920392779888318228.html",
				"title": "【舒适男鞋】23秋季新款男鞋时尚百搭休闲鞋男潮流板鞋男小白鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0530/166/0557a34d-8b7b-4d32-883c-719c74405cf2.jpg",
				"price": "69",
				"promotion_price": "69",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920152293767961608",
				"detail_url": "https://detail.vip.com/detail-1710614536-6920152293767961608.html",
				"title": "【商家畅销款】缓震男式运动跑步鞋男跑鞋男鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/103623/2022/1215/79/b4c98210-b2ff-47e0-b56c-93298a850616.jpg",
				"price": "108",
				"promotion_price": "108",
				"sales": 0,
				"area": "",
				"seller_nick": "361°"
			},
			{
				"num_iid": "6920468233840588308",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920468233840588308.html",
				"title": "【韩系简约】23秋季新款男鞋舒适百搭休闲鞋男中帮小白鞋男板鞋",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0721/197/8d364f39-dfc6-4021-a601-204447bba5d3.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920492794615544020",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920492794615544020.html",
				"title": "情侣小白鞋女23秋季新款女鞋舒适透气休闲鞋女简约百搭板鞋女",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0909/121/47dcdd94-ae76-4d2d-b60e-34ba94163cd9.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920465341777189958",
				"detail_url": "https://detail.vip.com/detail-1710614694-6920465341777189958.html",
				"title": "复古小白鞋女2023年秋季新品透气舒适百搭休闲运动板鞋女",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/112483/2023/0717/112/af645091-c624-47fb-b3ea-a8d2cd9c34d4.jpg",
				"price": "62",
				"promotion_price": "62",
				"sales": 0,
				"area": "",
				"seller_nick": "环球"
			},
			{
				"num_iid": "6920430797163554068",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920430797163554068.html",
				"title": "2023新款秋季款男鞋轻便舒适休闲鞋男百搭透气板鞋男小白鞋男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0625/126/2bc366cf-7aea-42c0-abcd-d79a7c093ae7.jpg",
				"price": "89",
				"promotion_price": "89",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			},
			{
				"num_iid": "6920392779837769492",
				"detail_url": "https://detail.vip.com/detail-1711552084-6920392779837769492.html",
				"title": "【热卖潮鞋】23秋季新款男鞋舒适耐磨休闲鞋男百搭拼色板鞋男",
				"pic_url": "http://h2.appsimg.com/a.appsimg.com/upload/merchandise/pdcvis/634318/2023/0530/182/87b88aea-6baa-4d01-b902-2cd5700cb9e1.jpg",
				"price": "69",
				"promotion_price": "69",
				"sales": 0,
				"area": "",
				"seller_nick": "回力"
			}
		],
		"_ddf": "app"
	},
	"error_code": "0000",

3、将item_search返回的商品ID通过循环的方式传入item_get来获取商品详情信息。

 响应示例

"item": {
		"num_iid": "1711552084-6920498614015980820",
		"title": "【热卖新款】23秋季新款女鞋百搭小白鞋女可爱风板鞋女厚底增高",
		"desc_short": "",
		"price": "89.00",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "359.00",
		"nick": "",
		"num": 0,
		"min_num": 0,
		"detail_url": "https://detail.vip.com/detail-1711552084-6920498614015980820.html",
		"pic_url": "https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0902/153/76a645b6-8772-483f-8730-816499d8d6fe.jpg",
		"brand": "回力",
		"brandId": 1711552084,
		"rootCatId": "",
		"cid": 282,
		"crumbs": [],
		"created_time": 1611298511000,
		"modified_time": 1683886534000,
		"delist_time": 2145888000000,
		"desc": "",
		"desc_img": [
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/43/92ee8839-cf1d-45f6-8783-24d9c28d607d.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/175/574ce087-8e72-4020-8027-4e620bda8c09.jpg",
			"https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/72/19be9b4d-4438-4c7b-a0eb-fbea587d21ea.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/191/3f6b345a-a6d8-4196-af98-cb8d7899e6f3.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/7/13dc7683-52bd-4c56-861b-2a222f107ad2.jpg",
			"https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/175/170724d2-c24c-43f2-997f-a94eae2aabfa.jpg",
			"https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/112/361dfc9c-c9f4-44a7-ba86-20823c9b0eed.jpg",
			"https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/162/f7b33cfb-8ef8-4486-bce0-b66c69440809.jpg",
			"https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/9/d308b654-20e8-4321-93d4-c9fd088aae42.jpg",
			"https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/189/cc89da4c-8227-4201-aab8-65f8f23908a6.jpg",
			"https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/64/a193f8aa-ffc5-4ca0-8acc-886064a3819b.jpg",
			"https://a.vpimg2.com/upload/merchandise/pdcvis/634318/2023/0811/148/90693364-e629-4d2e-b465-2068fc6426f0.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/172/76f6f525-82ea-4cf8-a4a8-2f5f4ed5147e.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/57/98972c76-8ae0-4a91-8a1b-9a96c5041d5b.jpg",
			"https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/62/d2050588-ff3f-4219-8d54-a7c0bb569960.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/157/6ab04e4b-8a5e-4f1b-b75d-a3cf288e7d94.jpg",
			"https://a.vpimg2.com/upload/merchandise/pdcvis/634318/2023/0811/67/d735300f-d770-4af6-999b-973cda61e8e1.jpg",
			"https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/153/43303155-becc-4798-be11-c96e319ad07b.jpg",
			"https://a.vpimg2.com/upload/merchandise/pdcvis/634318/2023/0811/168/8ee030d2-1827-4042-b212-f2ebf222dcb3.jpg",
			"https://a.vpimg2.com/upload/merchandise/pdcvis/634318/2023/0811/150/82d0c1b1-7f75-4b6a-a889-19bf7cf75b42.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/182/d60f49dc-8966-497e-9ea0-339667b9b6f0.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/136/d07659c9-10ed-4547-8203-fc40e204b7ae.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/127/a504adcc-9e5a-4718-958e-4c41105fe2bd.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/126/97244907-acaa-497d-9293-0b403cbad357.jpg",
			"https://a.vpimg2.com/upload/merchandise/pdcvis/634318/2023/0811/9/976667da-7f7c-4e9d-9544-85caeeb6232b.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/61/5d819082-c812-43fc-b97d-70f8cac0b3bb.jpg",
			"https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/116/2f54aa40-ee1a-4a42-8ba7-c7a51a61a28f.jpg",
			"https://a.vpimg2.com/upload/merchandise/pdcvis/634318/2023/0811/46/5dfac593-c64e-4d56-a983-8df68218a1cb.jpg"
		],
		"item_imgs": [
			{
				"url": "https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0902/153/76a645b6-8772-483f-8730-816499d8d6fe_750x750_75.jpg"
			},
			{
				"url": "https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/107/b5294a23-c9d6-48fa-8866-afd1b5b8e3c9_750x750_75.jpg"
			},
			{
				"url": "https://a.vpimg2.com/upload/merchandise/pdcvis/634318/2023/0811/147/a4e846fa-75d0-4190-affc-2a1c91cc0ea9_750x750_75.jpg"
			},
			{
				"url": "https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0819/153/316b0890-2e6a-4275-9a1c-849e1c3c82af_750x750_75.jpg"
			},
			{
				"url": "https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/148/d9745323-35ec-45b0-9e57-eaf3888475ef_750x750_75.jpg"
			},
			{
				"url": "https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/62/5f3d4a72-eb3b-4670-949d-776ab15b498e_750x750_75.jpg"
			},
			{
				"url": "https://a.vpimg4.com/upload/merchandise/pdcvis/634318/2023/0811/192/e6450434-13bd-4e4e-903a-856ca1549cc1_750x750_75.jpg"
			},
			{
				"url": "https://a.vpimg2.com/upload/merchandise/pdcvis/634318/2023/0811/125/0b2c22f8-f006-42b2-a283-f7775c2e9b4f_750x750_75.jpg"
			},
			{
				"url": "https://a.vpimg3.com/upload/merchandise/pdcvis/634318/2023/0811/27/996e7ae2-152c-4459-92f1-1d4c51fb3b99_750x750_75.jpg"
			},
			{
				"url": "https://a.vpimg2.com/upload/merchandise/pdcvis/634318/2023/0811/154/b23f40d2-4d92-4e6c-a404-05f35be2d0e7_750x750_75.jpg"
			}
		],
		"item_weight": "",
		"item_size": "",
		"location": "",
		"post_fee": "",
		"express_fee": "",
		"ems_fee": "",
		"shipping_to": "",
		"has_discount": "",
		"video": "",
		"is_virtual": "",
		"sample_id": "",
		"is_promotion": "false",
		"props_name": "38:灰/粉;39:灰/粉;40:灰/粉;37:灰/粉;36:灰/粉;35:灰/粉;",
		"prop_imgs": {
			"prop_img": []
		},
		"property_alias": "",
		"props": null,
		"total_sold": "0",
		"skus": {
			"sku": [
				{
					"price": "89",
					"sales": 2,
					"total_price": 0,
					"orginal_price": "359",
					"properti": {
						"134": "灰/粉",
						"453": "38"
					},
					"quantity": null,
					"sku_id": "6920498614015997204"
				},
				{
					"price": "89",
					"sales": 2,
					"total_price": 0,
					"orginal_price": "359",
					"properti": {
						"134": "灰/粉",
						"453": "39"
					},
					"quantity": null,
					"sku_id": "6920498614032831764"
				},
				{
					"price": "89",
					"sales": 2,
					"total_price": 0,
					"orginal_price": "359",
					"properti": {
						"134": "灰/粉",
						"453": "40"
					},
					"quantity": null,
					"sku_id": "6920498614032876820"
				},
				{
					"price": "89",
					"sales": 2,
					"total_price": 0,
					"orginal_price": "359",
					"properti": {
						"134": "灰/粉",
						"453": "37"
					},
					"quantity": null,
					"sku_id": "6920498614032909588"
				},
				{
					"price": "89",
					"sales": 2,
					"total_price": 0,
					"orginal_price": "359",
					"properti": {
						"134": "灰/粉",
						"453": "36"
					},
					"quantity": null,
					"sku_id": "6920498614032946452"
				},
				{
					"price": "89",
					"sales": 2,
					"total_price": 0,
					"orginal_price": "359",
					"properti": {
						"134": "灰/粉",
						"453": "35"
					},
					"quantity": null,
					"sku_id": "6920498614032987412"
				}
			]
		},
		"seller_id": "",
		"sales": 1,
		"shop_id": "",
		"props_list": [],
		"seller_info": {
			"title": "",
			"shop_name": "唯品自营",
			"sid": "",
			"zhuy": "",
			"level": "",
			"shop_type": "",
			"user_num_id": "ST00000",
			"nick": "",
			"cid": null,
			"delivery_score": "",
			"item_score": "",
			"tell": "",
			"addre": "",
			"score_p": ""
		},
		"tmall": "false",
		"error": "",
		"warning": "",
		"url_log": [],
		"stuff_status": "",
		"data_from": "ztk",
		"method": "",
		"promo_type": null,
		"props_img": [],
		"rate_grade": "",
		"priceRange": [],
		"shop_item": [],
		"relate_items": [],
		"shop_url": "",
		"format_check": "ok"
	},
	"error": "",
	"secache": "1b7b6cfa290fb9c152afc47e4a0995c0",
	"secache_time": 1698283008,
	"secache_date": "2023-10-26 09:16:48",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"reason": "",
	"error_code": "0000",

你可能感兴趣的:(唯品会api,信息可视化,数据分析,数据挖掘,网络爬虫,大数据,数据库)