溫馨提示×

溫馨提示×

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

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

Python怎么顯示用戶直播信息

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

這篇文章主要介紹“Python怎么顯示用戶直播信息”的相關(guān)知識,小編通過實際案例向大家展示操作過程,操作方法簡單快捷,實用性強,希望這篇“Python怎么顯示用戶直播信息”文章能幫助大家解決問題。

用戶直播信息Api:

請求Api

http://主機地址/douyin/user/live/info?token=xxx&uid=66598046050

請求方式

GET

參數(shù)

字段類型說明
tokenstring接口授權(quán)碼
uidint用戶id

返回示例

{
    "code":200,
    "data":{
        "data":{
            "adversary_authorization_info":1,
            "adversary_user_status":1,
            "allow_be_located":false,
            "allow_find_by_contacts":false,
            "allow_others_download_video":false,
            "allow_others_download_when_sharing_video":false,
            "allow_share_show_profile":false,
            "allow_show_in_gossip":false,
            "allow_show_my_action":false,
            "allow_strange_comment":false,
            "allow_unfollower_comment":false,
            "allow_use_linkmic":false,
            "authentication_info":{
                "authentication_badge":{
                    "avg_color":"",
                    "height":0,
                    "image_type":0,
                    "is_animated":false,
                    "open_web_url":"",
                    "uri":"webcast/authentication_icon.png",
                    "url_list":[
                        "http://p6-webcast-dycdn.byteimg.com/img/webcast/authentication_icon.png~tplv-obj.image",
                        "http://p9-webcast-dycdn.byteimg.com/img/webcast/authentication_icon.png~tplv-obj.image"
                    ],
                    "width":0
                },
                "custom_verify":"央視新聞官方賬號",
                "enterprise_verify_reason":"央視新聞官方抖音號"
            },
            "authorization_info":3,
            "avatar_large":{
                "avg_color":"",
                "height":0,
                "image_type":0,
                "is_animated":false,
                "open_web_url":"",
                "uri":"1080x1080/30e520009a01cad2d810e",
                "url_list":[
                    "https://cache.yisu.com/upload/information/20210521/347/247491.jpg?from=4010531038",
                    "https://cache.yisu.com/upload/information/20210521/347/247492.jpg?from=4010531038",
                    "https://cache.yisu.com/upload/information/20210521/347/247493.jpg?from=4010531038"
                ],
                "width":0
            },
            "avatar_medium":{
                "avg_color":"",
                "height":0,
                "image_type":0,
                "is_animated":false,
                "open_web_url":"",
                "uri":"720x720/30e520009a01cad2d810e",
                "url_list":[
                    "https://cache.yisu.com/upload/information/20210521/347/247494.jpg?from=4010531038",
                    "https://cache.yisu.com/upload/information/20210521/347/247496.jpg?from=4010531038",
                    "https://cache.yisu.com/upload/information/20210521/347/247497.jpg?from=4010531038"
                ],
                "width":0
            },
            "avatar_thumb":{
                "avg_color":"",
                "height":0,
                "image_type":0,
                "is_animated":false,
                "open_web_url":"",
                "uri":"100x100/30e520009a01cad2d810e",
                "url_list":[
                    "https://cache.yisu.com/upload/information/20210521/347/247498.jpg?from=4010531038",
                    "https://cache.yisu.com/upload/information/20210521/347/247499.jpg?from=4010531038",
                    "https://cache.yisu.com/upload/information/20210521/347/247500.jpg?from=4010531038"
                ],
                "width":0
            },
            "badge_image_list":[
            ],
            "bg_img_url":"",
            "birthday":0,
            "birthday_description":"",
            "birthday_valid":false,
            "block_status":0,
            "city":"",
            "comment_restrict":0,
            "commerce_webcast_config_ids":[
            ],
            "constellation":"",
            "create_time":0,
            "disable_ichat":0,
            "display_id":"cctvnews",
            "enable_ichat_img":0,
            "exp":0,
            "experience":0,
            "fan_ticket_count":0,
            "fans_club":{
                "data":{
                    "anchor_id":0,
                    "available_gift_ids":[
                    ],
                    "badge":{
                        "icons":{
                            "0":{
                                "avg_color":"",
                                "height":0,
                                "image_type":0,
                                "is_animated":false,
                                "open_web_url":"",
                                "uri":"",
                                "url_list":[
                                ],
                                "width":0
                            }
                        },
                        "title":""
                    },
                    "club_name":"",
                    "level":0,
                    "user_fans_club_status":0
                },
                "prefer_data":{
                }
            },
            "fold_stranger_chat":false,
            "follow_info":{
                "follow_status":0,
                "follower_count":95769058,
                "following_count":26,
                "push_status":0
            },
            "follow_status":0,
            "gender":0,
            "hotsoon_verified":false,
            "hotsoon_verified_reason":"",
            "ichat_restrict_type":0,
            "id":66598046050,
            "id_str":"66598046050",
            "income_share_percent":0,
            "is_follower":false,
            "is_following":false,
            "level":0,
            "link_mic_stats":1,
            "media_badge_image_list":[
            ],
            "modify_time":1600091516,
            "need_profile_guide":false,
            "new_real_time_icons":[
            ],
            "nickname":"央視新聞",
            "own_room":{
                "room_ids":[
                    6872336845759090000
                ],
                "room_ids_str":[
                    "6872336845759089421"
                ]
            },
            "pay_grade":{
                "grade_banner":"",
                "grade_describe":"距離1級還差1抖幣",
                "grade_icon_list":[
                ],
                "level":0,
                "name":"",
                "new_im_icon_with_level":{
                    "avg_color":"",
                    "height":0,
                    "image_type":0,
                    "is_animated":false,
                    "open_web_url":"",
                    "uri":"",
                    "url_list":[
                    ],
                    "width":0
                },
                "new_live_icon":{
                    "avg_color":"",
                    "height":0,
                    "image_type":0,
                    "is_animated":false,
                    "open_web_url":"",
                    "uri":"",
                    "url_list":[
                    ],
                    "width":0
                },
                "next_diamond":0,
                "next_name":"",
                "next_privileges":"",
                "now_diamond":0,
                "pay_diamond_bak":0,
                "score":0,
                "screen_chat_type":0,
                "this_grade_max_diamond":1,
                "this_grade_min_diamond":0,
                "total_diamond_count":0,
                "upgrade_need_consume":0
            },
            "pay_score":0,
            "pay_scores":0,
            "poi_info":{
                "is_poi_enabled":false,
                "poi_id":0,
                "poi_id_str":"",
                "poi_name":""
            },
            "push_comment_status":false,
            "push_digg":false,
            "push_follow":false,
            "push_friend_action":false,
            "push_ichat":false,
            "push_status":false,
            "push_video_post":false,
            "push_video_recommend":false,
            "real_time_icons":[
            ],
            "sec_uid":"MS4wLjABAAAAgq8cb7cn9ByhZbmx-XQDdRTvFzmJeBBXOUO4QflP96M",
            "secret":0,
            "share_qrcode_uri":"72a4000fe1b5d865c51b",
            "short_id":653421556,
            "signature":"本寶寶暫時還沒想到個性簽名",
            "special_id":"",
            "status":1,
            "telephone":"",
            "ticket_count":1379873,
            "top_fans":[
            ],
            "top_vip_no":0,
            "total_recharge_diamond_count":0,
            "user_attr":{
                "is_admin":false,
                "is_muted":false,
                "is_super_admin":false
            },
            "user_role":0,
            "verified":true,
            "verified_content":"",
            "verified_mobile":false,
            "verified_reason":"",
            "with_car_management_permission":false,
            "with_commerce_permission":true,
            "with_fusion_shop_entry":true
        },
        "extra":{
            "now":1600091520634
        },
        "status_code":0
    },
    "msg":"success"
}

關(guān)于“Python怎么顯示用戶直播信息”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識,可以關(guān)注億速云行業(yè)資訊頻道,小編每天都會為大家更新不同的知識點。

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

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

AI