溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

Python如何獲取直播商品列表

發(fā)布時間:2022-03-21 16:31:53 來源:億速云 閱讀:357 作者:iii 欄目:大數(shù)據(jù)

這篇文章主要講解了“Python如何獲取直播商品列表”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“Python如何獲取直播商品列表”吧!

接口:直播商品列表

請求Api

http://主機(jī)地址/douyin/liveroom/promotions?token=xxx&room_id=6843198199583378191

請求方式

GET

參數(shù)

字段類型說明
tokenstring接口授權(quán)碼
room_idint直播間id

返回示例

{
    "code":200,
    "data":{
        "current_promotion_id":"3436129527946972390",
        "entries":[
            {
                "icon":"http://p3.pstatp.com/origin/321f50008dae87efe41ce",
                "title":"訂單",
                "type":2,
                "url":"aweme://webview/?url=https%3A%2F%2Faweme.snssdk.com%2Ffalcon%2Fe_commerce%2Frn%2Forder_dashboard%2F%3Fstatus_font_dark%3D0%26hide_nav_bar%3D1%26loading_bgcolor%3D161823%26should_full_screen%3D1%26enter_from%3Dlive_list_card%26origin_type%3D9902106000&status_font_dark=0&hide_nav_bar=1&loading_bgcolor=161823&should_full_screen=1&enter_from=live_list_card&origin_type=9902106000&rn_schema=aweme%3A%2F%2Freactnative%2F%3Fmodule_name%3Dpage_order_dashboard%26status_font_dark%3D0%26hide_nav_bar%3D1%26loading_bgcolor%3D161823%26should_full_screen%3D1%26channel%3Dfe_lyon_order_dashboard%26bundle%3Dindex.js%26enter_from%3Dlive_list_card%26origin_type%3D9902106000"
            }
        ],
        "expire_time":300000,
        "flash_total":0,
        "has_more":false,
        "min_refresh_gap":10000,
        "next_page_id":"",
        "promotions":[
            Object{...},
            {
                "app_type":0,
                "app_url":"",
                "apply_coupon":0,
                "button_label":"去購買",
                "campaign":false,
                "can_explain":true,
                "can_seckill":false,
                "cos_fee":0,
                "cos_ratio":0,
                "coupons":[
                ],
                "cover":"https://sf6-ttcdn-tos.pstatp.com/img/temai/4d79a9bc80b64c9ffd9412fc45f59c9bwww850-850~tplv-resize:200:0.webp",
                "detail_url":"aweme://goods/seeding/?promotion_id=3436129527946972390&product_id=3436129527946972390&target_uid=3773170526723102&item_id=0&source_page=live&sec_target_uid=MS4wLjABAAAAtvPLMdtyUwsz7C5mYnFRnpVzkJTC4k_AGxjfPhzu8dWQymu9_lzXPHMXp1q5gnGj&meta_param={"enter_from":"live","live_room_id":"6872323400263797518"}&carrier_type=&entrance_info=",
                "elastic_title":"",
                "event_param":{
                },
                "extra":{
                    "coupon_min_price":"0",
                    "start_time":"0"
                },
                "flash_icon":"",
                "flash_type":0,
                "in_stock":true,
                "index":2,
                "item_type":6,
                "label_icon":"https://cache.yisu.com/upload/information/20210521/347/249695.png",
                "min_price":5990,
                "next_page":"split",
                "order_url":"",
                "platform":4,
                "platform_icon":"https://cache.yisu.com/upload/information/20210521/347/249697.png",
                "platform_label":"小店",
                "price":99900,
                "product_id":"3436129527946972390",
                "promotion_id":"3436129527946972390",
                "promotion_source":[
                ],
                "sale_num":0,
                "shop_id":3494225,
                "short_half_url":"",
                "short_title":"",
                "skip_style":0,
                "status":2,
                "stock_num":0,
                "title":"k00006三色顯瘦牛仔褲"
            },
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...}
        ],
        "room_type":0,
        "show_begin_time":0,
        "show_duration":0,
        "status_code":0,
        "status_msg":"",
        "top_limit":100,
        "total":31
    },
    "msg":"success"
}

感謝各位的閱讀,以上就是“Python如何獲取直播商品列表”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對Python如何獲取直播商品列表這一問題有了更深刻的體會,具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識點(diǎn)的文章,歡迎關(guān)注!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI