Python如何获取直播商品列表-成都快上网建站

Python如何获取直播商品列表

这篇文章主要讲解了“Python如何获取直播商品列表”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Python如何获取直播商品列表”吧!

创新互联专业为企业提供夏邑网站建设、夏邑做网站、夏邑网站设计、夏邑网站制作等企业网站建设、网页设计与制作、夏邑企业网站模板建站服务,10余年夏邑做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

接口:直播商品列表

请求Api

http://主机地址/douyin/liveroom/promotions?token=xxx&room_id=6843198199583378191

请求方式

GET

参数

字段类型说明
tokenstring接口授权码
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":"/upload/otherpic74/249695.png",
                "min_price":5990,
                "next_page":"split",
                "order_url":"",
                "platform":4,
                "platform_icon":"/upload/otherpic74/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如何获取直播商品列表”的内容了,经过本文的学习后,相信大家对Python如何获取直播商品列表这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!


标题名称:Python如何获取直播商品列表
网站地址:http://kswjz.com/article/pgsosp.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流