• 【temu】美国版数据采集API


    跨境电商temu的API接口

    item_get获得商品详情

    item_review获得商品评论列表

    item_search按关键字搜索商品

    请求地址: http://wechat:17610352720.cn

    temu

    联手降价
    以惊人的价格发现广泛的全球产品!

    数据搜索采集

    目前该平台数据量较少,还没有大量商家接入;

    import requests
    import os
    proxies = 'http://127.0.0.1:58889'
    headers = {
        'accept': 'application/json, text/plain, */*',
        'accept-encoding': 'gzip, deflate, br',
        'accept-language': 'zh-CN,zh;q=0.9',
        'cache-control': 'no-cache',
        'content-type': 'application/json;charset=UTF-8',
        'origin': 'https://us.temu.com',
        'pragma': 'no-cache',
        'referer': 'https://us.temu.com/w/search_result.html?search_key=Men&refer_page_name=home&refer_page_id=10005_1662346997888_p9babg770p&refer_page_sn=10005',
        'sec-ch-ua': '"Chromium";v="104", " Not A;Brand";v="99", "Google Chrome";v="104"',
        'sec-ch-ua-mobile': '?0',
        'sec-ch-ua-platform': '"Windows"',
        'sec-fetch-dest': 'empty',
        'sec-fetch-mode': 'cors',
        'sec-fetch-site': 'same-origin',
        'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36',
        'Content-Type': 'application/json',
    }
    
    data = '{"offset":116,"listId":"mskthosmotpv0p2wk7nt8","pageSize":60,"query":"women","scene":"search","filterItems":""}'
    
    response = requests.post('https://us.temu.com/api/poppy/v1/search', headers=headers, data=data, proxies={"http": proxies, "https": proxies})
    print(response.json())
    goods = dict(response.json()['result']['data'])
    print(goods)
    for item in goods.get('goods_list'):
        print(item['title'])
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    数据展示
    {
    	'price_info': {
    		'price': 1019,
    		'currency': 'USD',
    		'price_text': ['$', '10.19', ''],
    		'price_str': '$10.19'
    	},
    	'image': {
    		'width': 2000,
    		'id': 1,
    		'url': 'https://img.kwcdn.com/product/1dec4a1140/3f41f5ae-ad40-48de-9046-a860a439da52_2000x2667.jpeg',
    		'height': 2667
    	},
    	'long_thumb_url': 'https://img.kwcdn.com/product/1dec4a1140/3f41f5ae-ad40-48de-9046-a860a439da52_2000x2667.jpeg',
    	'thumb_url': 'https://img.kwcdn.com/product/1dec4a1140/3f41f5ae-ad40-48de-9046-a860a439da52_2000x2667.jpeg',
    	'sales_tip': '1 sold',
    	'visible': True,
    	'page_alt': 'Argyle Pattern Drop Shoulder Sweater',
    	'goods_id': 6017592186051984,
    	'title': 'Argyle Pattern Drop Shoulder Sweater',
    	'opt_id': 266,
    	'skc_list': [{
    		'spec_id': 16101,
    		'link_url': 'goods.html?_bg_fs=1&goods_id=6017592186051984&thumb_url=https%3A%2F%2Fimg.kwcdn.com%2Fproduct%2F1dec4a1140%2F3f41f5ae-ad40-48de-9046-a860a439da52_2000x2667.jpeg&_web_cover=thumb_url&pic_h=2667&pic_w=2000&spec_id=16101&spec_gallery_id=1',
    		'gallery_url': 'https://img.kwcdn.com/product/1dec4a1140/3f41f5ae-ad40-48de-9046-a860a439da52_2000x2667.jpeg',
    		'price_str': '10.19'
    	}],
    	'spec_ids': '16101',
    	'queryReleScore': 0.0,
    	'link_url': 'goods.html?_bg_fs=1&goods_id=6017592186051984&thumb_url=https%3A%2F%2Fimg.kwcdn.com%2Fproduct%2F1dec4a1140%2F3f41f5ae-ad40-48de-9046-a860a439da52_2000x2667.jpeg&_web_cover=thumb_url&pic_h=2667&pic_w=2000&spec_id=16101&spec_gallery_id=1&spec_ids=16101',
    	'opt_type': 3,
    	'p_search': {
    		'offset': '6',
    		'list_id': 'mskthosmotpv0p2wk7nt8',
    		'g': '6017592186051984',
    		'query': 'women',
    		'scene_id': '2',
    		'goods_source': 'search',
    		'idx': '57',
    		'region': '211',
    		'no_result': '1',
    		'search_id': '2qmFDtF15YvlLUOf9LaimIPJP4amtEndumYHPSCNg4pxXmlLpDOnq3ckvGQBivYk',
    		'scene': 'search',
    		'ts': '1662357370236'
    	},
    	'selected_spec_ids': [16101],
    	'goods_tags': []
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48

    联系

    定制开发

    你看好temu么!
  • 相关阅读:
    CTF例题合集(1)
    ZZNUOJ_用C语言编写程序实现1541:除法(附完整源码)
    大前端学习笔记
    【1】zabbix6.4监控windows电脑操作教程
    haproxy负载均衡
    睿趣科技:抖音小店申请流程
    SpringBoot整合七牛云实现图片的上传管理
    数字图像处理实验目录
    算法精选(一)
    Nature methods|新型微生物富集方法,可有效解决高宿主污染样本问题
  • 原文地址:https://blog.csdn.net/qq_37275405/article/details/126703804