python怎么实现视频评论的回复列表

发布时间:2022-03-17 17:03:32 作者:iii
来源:亿速云 阅读:201

本文小编为大家详细介绍“python怎么实现视频评论的回复列表”,内容详细,步骤清晰,细节处理妥当,希望这篇“python怎么实现视频评论的回复列表”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。

请求Api

http://主机地址/douyin/video/comment/reply?token=xxx&aweme_id=6775695565771541767&cid=6775738616267554829&cursor=20

请求方式

GET

参数

字段类型说明
tokenstring接口授权码
aweme_idint视频的aweme_id
cidint需要获取回复列表的评论cid
cursorint翻页游标,根据结果返回的cursor传入作为下一页翻页参数,初始为0

返回示例

{
    "code":200,
    "data":{
        "comments":[
            {
                "aweme_id":"6775695565771541767",
                "cid":"6775841480150941699",
                "create_time":1577623534,
                "digg_count":6,
                "is_author_digged":false,
                "label_list":null,
                "reply_comment":null,
                "reply_id":"6775738616267554829",
                "reply_to_reply_id":"0",
                "status":1,
                "text":"三胎!儿子!!!!哈哈!!!",
                "text_extra":[
                ],
                "user":{
                    "accept_private_policy":false,
                    "account_region":"",
                    "ad_cover_url":null,
                    "apple_account":0,
                    "authority_status":0,
                    "avatar_168x168":{
                        "height":720,
                        "uri":"tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef",
                        "url_list":[
                            "https://p6-dy-ipv6.byteimg.com/img/tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef~c5_168x168.webp?from=4010531038",
                            "https://p3-dy-ipv6.byteimg.com/img/tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef~c5_168x168.webp?from=4010531038",
                            "https://p9-dy.byteimg.com/img/tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef~c5_168x168.webp?from=4010531038"
                        ],
                        "width":720
                    },
                    "avatar_300x300":{
                        "height":720,
                        "uri":"tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef",
                        "url_list":[
                            "https://p3-dy-ipv6.byteimg.com/img/tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef~c5_300x300.webp?from=4010531038",
                            "https://p29-dy.byteimg.com/img/tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef~c5_300x300.webp?from=4010531038",
                            "https://p6-dy-ipv6.byteimg.com/img/tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef~c5_300x300.webp?from=4010531038"
                        ],
                        "width":720
                    },
                    "avatar_larger":{
                        "height":720,
                        "uri":"tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef",
                        "url_list":[
                            "https://cache.yisu.com/upload/information/20210521/347/248932.jpg?from=4010531038",
                            "https://cache.yisu.com/upload/information/20210521/347/248933.jpg?from=4010531038",
                            "https://cache.yisu.com/upload/information/20210521/347/248934.jpg?from=4010531038"
                        ],
                        "width":720
                    },
                    "avatar_medium":{
                        "height":720,
                        "uri":"tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef",
                        "url_list":[
                            "https://cache.yisu.com/upload/information/20210521/347/248935.jpg?from=4010531038",
                            "https://cache.yisu.com/upload/information/20210521/347/248937.jpg?from=4010531038",
                            "https://cache.yisu.com/upload/information/20210521/347/248938.jpg?from=4010531038"
                        ],
                        "width":720
                    },
                    "avatar_thumb":{
                        "height":720,
                        "uri":"tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef",
                        "url_list":[
                            "https://cache.yisu.com/upload/information/20210521/347/248939.jpg?from=4010531038",
                            "https://cache.yisu.com/upload/information/20210521/347/248940.jpg?from=4010531038",
                            "https://cache.yisu.com/upload/information/20210521/347/248941.jpg?from=4010531038"
                        ],
                        "width":720
                    },
                    "avatar_uri":"tos-cn-i-0813/fb4fc537572d4bc3bbf7ff49cb572fef",
                    "aweme_count":0,
                    "bind_phone":"",
                    "birthday":"1990-01-01",
                    "can_set_geofencing":null,
                    "cha_list":null,
                    "comment_filter_status":0,
                    "comment_setting":0,
                    "commerce_user_level":0,
                    "constellation":11,
                    "cover_url":[
                        {
                            "height":720,
                            "uri":"c8510002be9a3a61aad2",
                            "url_list":[
                                "https://p9-dy.byteimg.com/obj/c8510002be9a3a61aad2?from=2956013662",
                                "https://p29-dy.byteimg.com/obj/c8510002be9a3a61aad2?from=2956013662",
                                "https://p3-dy-ipv6.byteimg.com/obj/c8510002be9a3a61aad2?from=2956013662"
                            ],
                            "width":720
                        }
                    ],
                    "create_time":0,
                    "custom_verify":"",
                    "cv_level":"",
                    "download_prompt_ts":0,
                    "download_setting":-1,
                    "duet_setting":0,
                    "enable_nearby_visible":true,
                    "enterprise_verify_reason":"",
                    "favoriting_count":0,
                    "fb_expire_time":0,
                    "follow_status":0,
                    "follower_count":0,
                    "follower_status":0,
                    "followers_detail":null,
                    "following_count":0,
                    "gender":1,
                    "geofencing":[
                    ],
                    "google_account":"",
                    "has_email":false,
                    "has_facebook_token":false,
                    "has_insights":false,
                    "has_orders":false,
                    "has_twitter_token":false,
                    "has_unread_story":false,
                    "has_youtube_token":false,
                    "hide_location":false,
                    "hide_search":false,
                    "homepage_bottom_toast":null,
                    "ins_id":"",
                    "is_ad_fake":false,
                    "is_binded_weibo":false,
                    "is_block":false,
                    "is_discipline_member":false,
                    "is_gov_media_vip":false,
                    "is_phone_binded":false,
                    "is_star":false,
                    "is_verified":true,
                    "item_list":null,
                    "language":"zh-Hans",
                    "live_agreement":0,
                    "live_agreement_time":0,
                    "live_commerce":false,
                    "live_verify":0,
                    "location":"",
                    "need_points":null,
                    "need_recommend":0,
                    "neiguang_shield":0,
                    "new_story_cover":null,
                    "nickname":"亦如春风亦如夏",
                    "platform_sync_info":null,
                    "prevent_download":false,
                    "react_setting":0,
                    "reflow_page_gid":0,
                    "reflow_page_uid":0,
                    "region":"CN",
                    "relative_users":null,
                    "room_id":0,
                    "school_name":"",
                    "school_poi_id":"",
                    "school_type":0,
                    "sec_uid":"MS4wLjABAAAAyKSnGBJuySXIMJfjwmmvbG5YJ7PmvwQ7hVVwg-A2Dfs",
                    "secret":0,
                    "shield_comment_notice":0,
                    "shield_digg_notice":0,
                    "shield_follow_notice":0,
                    "short_id":"1070595939",
                    "show_image_bubble":false,
                    "signature":"",
                    "special_lock":1,
                    "status":1,
                    "stitch_setting":0,
                    "story_count":0,
                    "story_open":false,
                    "sync_to_toutiao":0,
                    "total_favorited":0,
                    "tw_expire_time":0,
                    "twitter_id":"",
                    "twitter_name":"",
                    "type_label":null,
                    "uid":"99244300175",
                    "unique_id":"",
                    "unique_id_modify_time":1600095781,
                    "user_canceled":false,
                    "user_mode":0,
                    "user_period":0,
                    "user_rate":1,
                    "user_tags":null,
                    "verification_type":1,
                    "verify_info":"",
                    "video_icon":{
                        "height":720,
                        "uri":"",
                        "url_list":[
                        ],
                        "width":720
                    },
                    "weibo_name":"",
                    "weibo_schema":"",
                    "weibo_url":"",
                    "weibo_verify":"",
                    "white_cover_url":null,
                    "with_commerce_entry":false,
                    "with_dou_entry":false,
                    "with_fusion_shop_entry":false,
                    "with_shop_entry":false,
                    "youtube_channel_id":"",
                    "youtube_channel_title":"",
                    "youtube_expire_time":0
                },
                "user_buried":false,
                "user_digged":0
            },
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...}
        ],
        "cursor":20,
        "extra":{
            "fatal_item_ids":[
            ],
            "logid":"202009142303010100280680822627C961",
            "now":1600095781000
        },
        "has_more":1,
        "log_pb":{
            "impr_id":"202009142303010100280680822627C961"
        },
        "status_code":0,
        "total":100
    },
    "msg":"success"
}

读到这里,这篇“python怎么实现视频评论的回复列表”文章已经介绍完毕,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. mongodb评论回复的相关设计
  2. 原生js实现回复评论功能

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

python

上一篇:python列表的两种形式是什么

下一篇:python怎么实现视频带货商品列表

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》