某音直播协议实现技术探讨

第一步:XG算法实现

        此算法的实现稍微复杂,不在此篇做讲解,有了xg算法才能进入直播间、进行互动等。

第二步:查找进入API

        通过抓包可以看到,进入某个直播的API如下

https://webcast3-normal-c-hl.amemv.com/webcast/room/enter/

        URL中是一些基本的设备参数信息,抓包即可看到。

上代码

import requests

sid_guard = 'xxx'
room_id = '6836045235944950543'
proxy = '58.218.92.73:2730'
url = 'http://192.168.32.130:8080/douyin/live/enter?sid_guard='+sid_guard+'&rid='+room_id+'&proxyip='+proxy

data = {
    "webcast_sdk_version":"1150",
    "manifest_version_code":"750",
    "app_type":"normal",
    "iid":"xxx",
    "channel":"baidu",
    "device_type":"HWI-AL00",
    "language":"zh",
    "resolution":"2340x1080",
    "openudid":"xxx",
    "update_version_code":"7502",
    "os_api":"29",
    "dpi":"480",
    "ac":"wifi",
    "device_id":"xxx",
    "mcc_mnc":"46001",
    "os_version":"10.0",
    "version_code":"750",
    "app_name":"aweme",
    "version_name":"7.5.0",
    "js_sdk_version":"1.19.4.16",
    "device_brand":"HUAWEI",
    "ssmix":"a",
    "device_platform":"android",
    "aid":"1128"
}

resp = requests.post(url=url,data=data)
print(resp.status_code)
print(resp.text)

请求结果返回信息如下:

{"data": {"admin_user_ids": [50479377914], "anchor_scheduled_time_text": "", "anchor_share_text": "#在抖音,记录美好生活#【人间奶糖】正在直%u
64ad,来和我一起支持TA吧。复制下方链接,打开【抖音短视频】,直接观看直播!", "anc
hor_tab_type": 0, "base_category": 0, "book_end_time": 0, "book_time": 0, "business_live": 0, "category": 0, "cell_style": 3, "challenge_info": "", "client_version": 110200, "comment_box": {"icon": {"avg_color": "#BCB
CE0", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "webcast/default_comment_icon_v2.png", "url_list": ["http://p1-webcast-dycdn.byteimg.com/img/webcast/default_comment_icon_v2.png~tpl
v-obj.image", "http://p3-webcast-dycdn.byteimg.com/img/webcast/default_comment_icon_v2.png~tplv-obj.image"], "width": 0}, "placeholder": "说点什么..."}, "common_label_list": "", "content_tag": "", "cov
er": {"avg_color": "#EBEBFF", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "webcast/6835590821858282255", "url_list": ["http://p9-webcast-dycdn.byteimg.com/img/webcast/683559082185828
2255~tplv-obj.image", "http://p6-webcast-dycdn.byteimg.com/img/webcast/6835590821858282255~tplv-obj.image"], "width": 0}, "create_time": 1591640812, "deco_list": [{"content": "欢迎加入粉丝%u56e
2~", "h": 2688, "id": 1000001, "image": {"avg_color": "#BCBCE0", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "171c30000f35aeff3062e", "url_list": ["http://p3-webcast-dycdn.bytei
mg.com/img/mosaic-legacy/171c30000f35aeff3062e~tplv-obj.image", "http://p1-webcast-dycdn.byteimg.com/img/mosaic-legacy/171c30000f35aeff3062e~tplv-obj.image"], "width": 0}, "input_rect": [48, 60, 192, 34], "kind": 0, "
max_length": 8, "status": 1, "sub_type": 0, "text_color": "#ffffff", "text_size": 24, "type": 1, "w": 1242, "x": 217, "y": 1766}], "distance": "杭州", "distance_city": "20公里外", "distance_km": ""
, "dynamic_cover_dict": {}, "dynamic_cover_uri": "", "enable_room_perspective": true, "fansclub_msg_style": 2, "fcdn_appid": 0, "feed_room_label": {"avg_color": "#7A6053", "height": 0, "image_type": 0, "is_animated":
false, "open_web_url": "", "uri": "webcast/2ea90002aca1159b5c67", "url_list": ["http://p1-webcast-dycdn.byteimg.com/img/webcast/2ea90002aca1159b5c67~tplv-obj.image", "http://p9-webcast-dycdn.byteimg.com/img/webcast/2e
a90002aca1159b5c67~tplv-obj.image"], "width": 0}, "finish_time": 1591643707, "finish_url": "", "follow_msg_style": 2, "forum_extra_data": "", "gift_msg_style": 2, "group_id": 0, "group_source": 0, "guide_button": {"av
g_color": "#FFEBF8", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "webcast/aweme_button_call_3x.png", "url_list": ["http://p3-webcast-dycdn.byteimg.com/img/webcast/aweme_button_call_3
x.png~tplv-obj.image", "http://p6-webcast-dycdn.byteimg.com/img/webcast/aweme_button_call_3x.png~tplv-obj.image"], "width": 0}, "has_commerce_goods": false, "hot_sentence_info": "", "id": 6836045235944950543, "id_str"
: "6836045235944950543", "introduction": "", "is_replay": false, "is_show_inquiry_ball": false, "is_show_user_card_switch": false, "last_ping_time": 1591643707, "layout": 0, "like_count": 28, "link_mic": {"battle_scor
es": [{"score": 114, "user_id": 76339967309}, {"score": 10, "user_id": 51145055076}], "battle_settings": {"battle_id": 6836054750291593984, "channel_id": 6836050046837115663, "duration": 300, "finished": 1, "match_typ
e": 1, "start_time": 1591643287, "start_time_ms": 1591643287000, "theme": ""}, "channel_id": 6836050046837115663, "channel_info": {"dimension": 1, "layout": 4, "vendor": 4}, "rival_anchor_id": 76339967309}, "linker_ma
p": {}, "linkmic_layout": 1, "live_distribution": [], "live_id": 1, "live_type_audio": false, "live_type_linkmic": false, "live_type_normal": true, "live_type_official": false, "live_type_sandbox": false, "live_type_s
creenshot": false, "live_type_third_party": false, "living_room_attrs": {"admin_flag": 0, "rank": 0, "room_id": 6836045235944950543, "room_id_str": "6836045235944950543", "silence_flag": 0}, "location": "", "lottery_f
inish_time": 0, "luckymoney_num": 0, "mosaic_status": 0, "mosaic_tip": "", "orientation": 0, "os_type": 1, "owner": {"adversary_authorization_info": 0, "adversary_user_status": 0, "allow_be_located": false, "allow_fin
d_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_s
trange_comment": false, "allow_unfollower_comment": false, "allow_use_linkmic": false, "authorization_info": 3, "avatar_large": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "",
 "uri": "1080x1080/314a200066119484017f0", "url_list": ["https://p9-dy-ipv6.byteimg.com/aweme/1080x1080/314a200066119484017f0.jpeg", "https://p29-dy.byteimg.com/aweme/1080x1080/314a200066119484017f0.jpeg", "https://p3
-dy.byteimg.com/aweme/1080x1080/314a200066119484017f0.jpeg"], "width": 0}, "avatar_medium": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "720x720/314a200066119484017
f0", "url_list": ["https://p9-dy-ipv6.byteimg.com/aweme/720x720/314a200066119484017f0.jpeg", "https://p29-dy.byteimg.com/aweme/720x720/314a200066119484017f0.jpeg", "https://p3-dy.byteimg.com/aweme/720x720/314a20006611
9484017f0.jpeg"], "width": 0}, "avatar_thumb": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "100x100/314a200066119484017f0", "url_list": ["https://p9-dy-ipv6.byteimg
.com/aweme/100x100/314a200066119484017f0.jpeg", "https://p29-dy.byteimg.com/aweme/100x100/314a200066119484017f0.jpeg", "https://p3-dy.byteimg.com/aweme/100x100/314a200066119484017f0.jpeg"], "width": 0}, "badge_image_l
ist": [{"avg_color": "", "height": 16, "image_type": 1, "is_animated": false, "open_web_url": "", "uri": "webcast/aweme_honor_level_icon_new_3.png", "url_list": ["http://p1-webcast-dycdn.byteimg.com/img/webcast/aweme_
honor_level_icon_new_3.png~tplv-obj.image", "http://p3-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_3.png~tplv-obj.image"], "width": 32}], "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": "dy2gkgp0yfd0", "enable_ich
at_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": fa
lse, "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": 24, "following_count": 9, "push_status": 0}, "follow_status": 0, "gender": 2, "hotsoon_verified": false, "hotsoon_verified_reason": "", "ichat_restrict_type": 0, "id": 51145055076, "id_str": "5
1145055076", "income_share_percent": 0, "is_follower": false, "is_following": false, "level": 0, "link_mic_stats": 1, "media_badge_image_list": [], "modify_time": 1591641522, "need_profile_guide": false, "new_real_tim
e_icons": [], "nickname": "人间奶糖", "own_room": {"room_ids": [6836045235944950543], "room_ids_str": ["6836045235944950543"]}, "pay_grade": {"grade_banner": "", "grade_describe": "距离4级\
u8fd8差10抖币", "grade_icon_list": [], "level": 3, "name": "", "new_im_icon_with_level": {"avg_color": "", "height": 16, "image_type": 1, "is_animated": false, "open_web_url": "", "uri": "webcast/aweme_hon
or_level_icon_new_3.png", "url_list": ["http://p1-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_3.png~tplv-obj.image", "http://p3-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_3.p
ng~tplv-obj.image"], "width": 32}, "new_live_icon": {"avg_color": "", "height": 12, "image_type": 1, "is_animated": false, "open_web_url": "", "uri": "webcast/aweme_pay_grade_2x_1_4.png", "url_list": ["http://p1-webca
st-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_1_4.png~tplv-obj.image", "http://p9-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_1_4.png~tplv-obj.image"], "width": 12}, "next_diamond": 0, "next_name":
"", "next_privileges": "", "now_diamond": 0, "pay_diamond_bak": 0, "score": 19, "screen_chat_type": 0, "this_grade_max_diamond": 29, "this_grade_min_diamond": 16, "total_diamond_count": 19, "upgrade_need_consume": 0},
 "pay_score": 19, "pay_scores": 0, "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": "MS4wLjABAAAArKulJyLHQVLqFoYmeqSPLOYD_JzsHm13zNCbIUb-qHk", "secret": 0, "share_qrcode_uri": "30f29000746def323c559", "short_id": 3625622532, "signature": "", "speci
al_id": "", "status": 1, "telephone": "", "ticket_count": 775, "top_fans": [], "top_vip_no": 0, "total_recharge_diamond_count": 0, "user_attr": {"is_admin": false, "is_muted": false, "is_super_admin": false}, "user_ro
le": 0, "verified": true, "verified_content": "", "verified_mobile": false, "verified_reason": "", "with_car_management_permission": false, "with_commerce_permission": false, "with_fusion_shop_entry": false}, "owner_u
ser_id": 51145055076, "popularity": 0, "popularity_str": "", "preview_copy": " 昨天擦肩而过,今天不再错过~", "private_info": "", "real_distance": "1828.1", "replay":
 false, "replay_location": 0, "room_audit_status": 0, "room_auth": {"Banner": 1, "Chat": true, "CommerceCard": 1, "Danmaku": false, "Digg": true, "DonationSticker": 2, "Gift": true, "GiftAnchorMt": 0, "HourRank": 0, "
Landscape": 1, "LandscapeChat": 1, "LuckMoney": true, "MoreAnchor": 1, "POI": true, "Props": true, "PublicScreen": 1, "RecordScreen": 2, "RoomContributor": true, "Share": 1, "UserCard": true, "UserCorner": 1}, "room_l
ayout": 0, "room_tabs": [], "room_tag": 0, "search_id": 0, "sell_goods": false, "share_msg_style": 2, "share_url": "https://www.iesdouyin.com/share/live/6836045235944950543?u_code=1263hg597", "short_title": "", "short
_touch_area_config": {"elements": {"1": {"priority": 0, "type": 1}, "10": {"priority": 2, "type": 10}, "2": {"priority": 0, "type": 2}, "3": {"priority": 0, "type": 3}, "4": {"priority": 2, "type": 4}, "5": {"priority
": 2, "type": 5}, "6": {"priority": 2, "type": 6}, "7": {"priority": 2, "type": 7}, "8": {"priority": 2, "type": 8}, "9": {"priority": 2, "type": 9}}}, "stamps": "", "start_time": 0, "stats": {"digg_count": 0, "dou_pl
us_promotion": "", "enter_count": 0, "fan_ticket": 78, "follow_count": 2, "gift_uv_count": 7, "id": 6836045235944950543, "id_str": "6836045235944950543", "like_count": 0, "money": 0, "total_user": 384, "total_user_des
p": "", "user_count_composition": {"city": 0.42, "my_follow": 0.01, "other": 0.32, "video_detail": 0.26}, "watermelon": 0}, "status": 2, "stream_close_time": 0, "stream_id": 683273937618206802, "stream_id_str": "68327
3937618206802", "stream_provider": 0, "stream_url": {"candidate_resolution": [], "complete_push_urls": [], "default_resolution": "ORIGION", "extra": {"anchor_interact_profile": 0, "audience_interact_profile": 0, "bfra
me_enable": false, "bitrate_adapt_strategy": 0, "default_bitrate": 800, "fps": 15, "gop_sec": 0, "h265_enable": false, "hardware_encode": false, "height": 1280, "max_bitrate": 1333, "min_bitrate": 512, "roi": false, "
sw_roi": false, "video_profile": 0, "width": 720}, "flv_pull_url": {}, "flv_pull_url_params": {}, "hls_pull_url": "http://pull-l3.douyincdn.com/stage/stream-683273937618206802_or4.m3u8", "hls_pull_url_map": {}, "hls_p
ull_url_params": "{\"VCodec\":\"h264\"}", "id": 683273937618206802, "id_str": "683273937618206802", "live_core_sdk_data": {"pull_data": {"options": {"default_quality": {"name": "原画", "sdk_key": "origin"}, "q
ualities": [{"name": "原画", "sdk_key": "origin"}]}, "stream_data": "{\"common\":{\"session_id\":\"202006090315150100210422100E4F3090_stream-683273937618206802\"},\"data\":{\"origin\":{\"main\":{\"flv\":\"http
://pull-l3.douyincdn.com/stage/stream-683273937618206802_or4.flv\",\"hls\":\"http://pull-l3.douyincdn.com/stage/stream-683273937618206802_or4.m3u8\",\"cmaf\":\"\",\"dash\":\"\",\"sdk_params\":\"{\\\"VCodec\\\":\\\"h26
4\\\"}\"}}}}"}}, "provider": 0, "push_urls": [], "resolution_name": {"FULL_HD1": "蓝光", "HD1": "超清", "ORIGION": "原画", "SD1": "标清", "SD2": "高清"}, "rtmp_pull_url": "http:
//pull-l3.douyincdn.com/stage/stream-683273937618206802_or4.flv", "rtmp_pull_url_params": "{\"VCodec\":\"h264\"}", "rtmp_push_url": "", "rtmp_push_url_params": ""}, "sun_daily_icon_content": "", "tags": [], "title": "
新人直播第一天", "top_fans": [{"fan_ticket": 69, "user": {"adversary_authorization_info": 0, "adversary_user_status": 0, "allow_be_located": false, "allow_find_by_contacts": false, "allow_o
thers_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, "authorization_info": 3, "avatar_large": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "1080x1080/tos-cn-i-081
3/d8cd01366e614812a9afe0f13d62d415", "url_list": ["https://p16-sg.muscdn.com/tt-img/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_1080x1080.jpeg?from=4010531038", "https://p3-dy-ipv6.byteimg.com/img/tos-cn-i-0
813/d8cd01366e614812a9afe0f13d62d415~c5_1080x1080.jpeg?from=4010531038", "https://p29-dy.byteimg.com/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_1080x1080.jpeg?from=4010531038", "https://p6-dy-ipv6.byteimg.c
om/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_1080x1080.jpeg?from=4010531038"], "width": 0}, "avatar_medium": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri":
 "720x720/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415", "url_list": ["https://p16-sg.muscdn.com/tt-img/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_720x720.jpeg?from=4010531038", "https://p9-dy.byteimg.com
/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_720x720.jpeg?from=4010531038", "https://p3-dy.byteimg.com/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_720x720.jpeg?from=4010531038", "https://p6-dy-ipv6
.byteimg.com/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_720x720.jpeg?from=4010531038"], "width": 0}, "avatar_thumb": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "",
 "uri": "100x100/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415", "url_list": ["https://p16-sg.muscdn.com/tt-img/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_100x100.jpeg?from=4010531038", "https://p9-dy-ipv6
.byteimg.com/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_100x100.jpeg?from=4010531038", "https://p3-dy.byteimg.com/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_100x100.jpeg?from=4010531038", "https:
//p6-dy-ipv6.byteimg.com/img/tos-cn-i-0813/d8cd01366e614812a9afe0f13d62d415~c5_100x100.jpeg?from=4010531038"], "width": 0}, "badge_image_list": [{"avg_color": "", "height": 16, "image_type": 1, "is_animated": false, "
open_web_url": "", "uri": "webcast/aweme_honor_level_icon_new_16.png", "url_list": ["http://p3-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_16.png~tplv-obj.image", "http://p9-webcast-dycdn.byteimg.
com/img/webcast/aweme_honor_level_icon_new_16.png~tplv-obj.image"], "width": 32}], "bg_img_url": "", "birthday": 0, "birthday_description": "", "birthday_valid": false, "block_status": 0, "city": "广州", "comm
ent_restrict": 0, "commerce_webcast_config_ids": [], "constellation": "", "create_time": 0, "disable_ichat": 0, "display_id": "Never.meetyou.", "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": 44, "following_count": 114, "push_stat
us": 0}, "follow_status": 0, "gender": 1, "hotsoon_verified": false, "hotsoon_verified_reason": "", "ichat_restrict_type": 0, "id": 59342843475, "id_str": "59342843475", "income_share_percent": 0, "is_follower": false
, "is_following": false, "level": 1, "link_mic_stats": 1, "media_badge_image_list": [], "modify_time": 1591436030, "need_profile_guide": false, "new_real_time_icons": [], "nickname": "薯条", "pay_g
rade": {"grade_banner": "", "grade_describe": "距离17级还差286抖币", "grade_icon_list": [], "level": 16, "name": "", "new_im_icon_with_level": {"avg_color": "", "height": 16, "image_type":
1, "is_animated": false, "open_web_url": "", "uri": "webcast/aweme_honor_level_icon_new_16.png", "url_list": ["http://p3-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_16.png~tplv-obj.image", "http:/
/p9-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_16.png~tplv-obj.image"], "width": 32}, "new_live_icon": {"avg_color": "", "height": 12, "image_type": 1, "is_animated": false, "open_web_url": "", "
uri": "webcast/aweme_pay_grade_2x_15_19.png", "url_list": ["http://p9-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_15_19.png~tplv-obj.image", "http://p1-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grad
e_2x_15_19.png~tplv-obj.image"], "width": 12}, "next_diamond": 0, "next_name": "", "next_privileges": "", "now_diamond": 0, "pay_diamond_bak": 0, "score": 1414, "screen_chat_type": 0, "this_grade_max_diamond": 1700, "
this_grade_min_diamond": 1300, "total_diamond_count": 1414, "upgrade_need_consume": 0}, "pay_score": 1414, "pay_scores": 0, "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": "MS4wLjABAAAAuh_fLDivGP5LYA7gE00pTBnXK2yIKEEKy604_uwkvqA", "secret": 0, "sh
are_qrcode_uri": "216a003b091a4127e53f", "short_id": 17764115, "signature": "恋爱误人 喝酒伤身", "special_id": "", "status": 1, "telephone": "", "ticket_count": 0, "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, "verifie
d_reason": "", "with_car_management_permission": false, "with_commerce_permission": false, "with_fusion_shop_entry": false}}, {"fan_ticket": 3, "user": {"adversary_authorization_info": 0, "adversary_user_status": 0, "
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, "al
low_show_my_action": false, "allow_strange_comment": false, "allow_unfollower_comment": false, "allow_use_linkmic": false, "authorization_info": 3, "avatar_large": {"avg_color": "", "height": 0, "image_type": 0, "is_a
nimated": false, "open_web_url": "", "uri": "1080x1080/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7", "url_list": ["https://p3-dy.byteimg.com/aweme/1080x1080/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7.jpeg", "ht
tps://p6-dy-ipv6.byteimg.com/aweme/1080x1080/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7.jpeg", "https://p9-dy.byteimg.com/aweme/1080x1080/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7.jpeg"], "width": 0}, "avatar
_medium": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "720x720/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7", "url_list": ["https://p3-dy.byteimg.com/aweme/720x72
0/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7.jpeg", "https://p6-dy-ipv6.byteimg.com/aweme/720x720/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7.jpeg", "https://p9-dy.byteimg.com/aweme/720x720/tos-cn-i-0813/a498e7
1f52f74efa807bf8cc69835bd7.jpeg"], "width": 0}, "avatar_thumb": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "100x100/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7"
, "url_list": ["https://p3-dy.byteimg.com/aweme/100x100/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7.jpeg", "https://p6-dy-ipv6.byteimg.com/aweme/100x100/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7.jpeg", "https:
//p9-dy.byteimg.com/aweme/100x100/tos-cn-i-0813/a498e71f52f74efa807bf8cc69835bd7.jpeg"], "width": 0}, "badge_image_list": [{"avg_color": "", "height": 16, "image_type": 1, "is_animated": false, "open_web_url": "", "ur
i": "webcast/aweme_honor_level_icon_new_24.png", "url_list": ["http://p6-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_24.png~tplv-obj.image", "http://p9-webcast-dycdn.byteimg.com/img/webcast/aweme_
honor_level_icon_new_24.png~tplv-obj.image"], "width": 32}], "bg_img_url": "", "birthday": 0, "birthday_description": "", "birthday_valid": false, "block_status": 0, "city": "", "comment_restrict": 0, "commerce_webcas
t_config_ids": [], "constellation": "", "create_time": 0, "disable_ichat": 0, "display_id": "dyu03uva1ksc", "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": 137, "following_count": 49, "push_status": 0}, "follow_status": 0, "gender
": 0, "hotsoon_verified": false, "hotsoon_verified_reason": "", "ichat_restrict_type": 0, "id": 1033139748871400, "id_str": "1033139748871400", "income_share_percent": 0, "is_follower": false, "is_following": false, "
level": 0, "link_mic_stats": 1, "media_badge_image_list": [], "modify_time": 1591381657, "need_profile_guide": false, "new_real_time_icons": [], "nickname": "江山岁月", "pay_grade": {"grade_banner": ""
, "grade_describe": "距离25级还差592抖币", "grade_icon_list": [], "level": 24, "name": "", "new_im_icon_with_level": {"avg_color": "", "height": 16, "image_type": 1, "is_animated": false, "
open_web_url": "", "uri": "webcast/aweme_honor_level_icon_new_24.png", "url_list": ["http://p6-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_24.png~tplv-obj.image", "http://p9-webcast-dycdn.byteimg.
com/img/webcast/aweme_honor_level_icon_new_24.png~tplv-obj.image"], "width": 32}, "new_live_icon": {"avg_color": "", "height": 12, "image_type": 1, "is_animated": false, "open_web_url": "", "uri": "webcast/aweme_pay_g
rade_2x_20_24.png", "url_list": ["http://p9-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_20_24.png~tplv-obj.image", "http://p6-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_20_24.png~tplv-obj.im
age"], "width": 12}, "next_diamond": 0, "next_name": "", "next_privileges": "", "now_diamond": 0, "pay_diamond_bak": 0, "score": 14408, "screen_chat_type": 0, "this_grade_max_diamond": 15000, "this_grade_min_diamond":
 11000, "total_diamond_count": 14408, "upgrade_need_consume": 0}, "pay_score": 14408, "pay_scores": 0, "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": "MS4wLjABAAAAtA2DxQ5DGxCvhWeWU493z5OIHUfA12Flq599scHvD0RSus1U0hBlG5XsI_S1AI5d", "secret": 0, "sh
are_qrcode_uri": "315f500091d6fff61ede1", "short_id": 3691719498, "signature": "", "special_id": "", "status": 1, "telephone": "", "ticket_count": 0, "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": false, "with_fusion_shop_entry": false}}, {"fan_ticket": 2, "user": {"adversary_authorization_info": 1, "adversary_user_status": 0, "allow_be_located": false, "allow_find_by_conta
cts": 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_com
ment": false, "allow_unfollower_comment": false, "allow_use_linkmic": false, "authorization_info": 3, "avatar_large": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_web_url": "", "uri": "1
080x1080/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680", "url_list": ["https://p16-sg.muscdn.com/tt-img/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_1080x1080.jpeg?from=4010531038", "https://p9-dy-ipv6.bytei
mg.com/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_1080x1080.jpeg?from=4010531038", "https://p6-dy-ipv6.byteimg.com/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_1080x1080.jpeg?from=4010531038", "htt
ps://p3-dy.byteimg.com/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_1080x1080.jpeg?from=4010531038"], "width": 0}, "avatar_medium": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false, "open_
web_url": "", "uri": "720x720/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680", "url_list": ["https://p16-sg.muscdn.com/tt-img/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_720x720.jpeg?from=4010531038", "https
://p9-dy.byteimg.com/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_720x720.jpeg?from=4010531038", "https://p6-dy-ipv6.byteimg.com/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_720x720.jpeg?from=4010531
038", "https://p3-dy.byteimg.com/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_720x720.jpeg?from=4010531038"], "width": 0}, "avatar_thumb": {"avg_color": "", "height": 0, "image_type": 0, "is_animated": false,
 "open_web_url": "", "uri": "100x100/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680", "url_list": ["https://p16-sg.muscdn.com/tt-img/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_100x100.jpeg?from=4010531038",
 "https://p3-dy.byteimg.com/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_100x100.jpeg?from=4010531038", "https://p6-dy-ipv6.byteimg.com/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_100x100.jpeg?from=
4010531038", "https://p9-dy.byteimg.com/img/tos-cn-i-0813/d94aa88c42994b30a75edea4703cc680~c5_100x100.jpeg?from=4010531038"], "width": 0}, "badge_image_list": [{"avg_color": "", "height": 16, "image_type": 1, "is_anim
ated": false, "open_web_url": "", "uri": "webcast/aweme_honor_level_icon_new_35.png", "url_list": ["http://p3-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_35.png~tplv-obj.image", "http://p6-webcast
-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_35.png~tplv-obj.image"], "width": 32}], "bg_img_url": "", "birthday": 0, "birthday_description": "", "birthday_valid": false, "block_status": 0, "city": "%u676
d州", "comment_restrict": 0, "commerce_webcast_config_ids": [], "constellation": "", "create_time": 0, "disable_ichat": 0, "display_id": "X369Y369", "enable_ichat_img": 0, "exp": 0, "experience": 0, "fan_ticket_co
unt": 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": 195, "following_count": 13, "
push_status": 0}, "follow_status": 0, "gender": 1, "hotsoon_verified": false, "hotsoon_verified_reason": "", "ichat_restrict_type": 0, "id": 58753095957, "id_str": "58753095957", "income_share_percent": 0, "is_followe
r": false, "is_following": false, "level": 1, "link_mic_stats": 1, "media_badge_image_list": [], "modify_time": 1591626968, "need_profile_guide": false, "new_real_time_icons": [], "nickname": "目啊", "pay_grad
e": {"grade_banner": "", "grade_describe": "距离36级还差2.4w抖币", "grade_icon_list": [], "level": 35, "name": "", "new_im_icon_with_level": {"avg_color": "", "height": 16, "image_type": 1,
 "is_animated": false, "open_web_url": "", "uri": "webcast/aweme_honor_level_icon_new_35.png", "url_list": ["http://p3-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_35.png~tplv-obj.image", "http://p
6-webcast-dycdn.byteimg.com/img/webcast/aweme_honor_level_icon_new_35.png~tplv-obj.image"], "width": 32}, "new_live_icon": {"avg_color": "", "height": 12, "image_type": 1, "is_animated": false, "open_web_url": "", "ur
i": "webcast/aweme_pay_grade_2x_35_39.png", "url_list": ["http://p9-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_2x_35_39.png~tplv-obj.image", "http://p1-webcast-dycdn.byteimg.com/img/webcast/aweme_pay_grade_
2x_35_39.png~tplv-obj.image"], "width": 12}, "next_diamond": 0, "next_name": "", "next_privileges": "", "now_diamond": 0, "pay_diamond_bak": 0, "score": 275892, "screen_chat_type": 0, "this_grade_max_diamond": 300000,
 "this_grade_min_diamond": 230000, "total_diamond_count": 275892, "upgrade_need_consume": 0}, "pay_score": 275892, "pay_scores": 0, "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": "MS4wLjABAAAA18rLLyWe6ywtoGU_LFotr4IR2Q2lujs64CmWslzywcg", "secret"
: 0, "share_qrcode_uri": "46b800066fc94c7f0f08", "short_id": 6382648, "signature": "业余选手", "special_id": "", "status": 1, "telephone": "", "ticket_count": 0, "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": "", "wi
th_car_management_permission": false, "with_commerce_permission": false, "with_fusion_shop_entry": false}}], "use_filter": false, "user_count": 8, "user_share_text": "#在抖音,记录美好\
u751f活#【人间奶糖】正在直播,来和我一起支持TA吧。复制下方链接,打开【抖音短%u89c
6频】,直接观看直播!", "vertical_cover_uri": "", "vid": "", "video_feed_tag": "", "wait_copy": "认识一个人靠缘分,了解一个%u
4eba靠耐心", "web_count": 0, "webcast_comment_tcs": 0, "with_draw_something": false, "with_ktv": false, "with_linkmic": false}, "extra": {"digg_color": 11069961, "now": 1591643716149, "pay_scores": 0}, "st
atus_code": 0}

成功进入后还需做保持在线的操作,这样就搞定了。我的wx:YY_yhzf

你可能感兴趣的:(抖音协议,直播人气,抖音直播人气)