python如何实现用户关注列表

发布时间:2022-03-17 17:05:09 作者:iii
来源:亿速云 阅读:208

这篇文章主要介绍“python如何实现用户关注列表”,在日常操作中,相信很多人在python如何实现用户关注列表问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”python如何实现用户关注列表”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!

抖音用户关注列表Api:

请求Api

http://主机地址/douyin/user/followings?token=xxx&uid=100000004548&cursor=1577594707000

请求方式

GET

参数

字段类型说明
tokenstring接口授权码
uidint用户id
cursorint翻页游标,根据结果返回的cursor传入作为下一页翻页参数,初始为0

返回示例

{
    "code":200,
    "data":{
        "extra":{
            "fatal_item_ids":[
            ],
            "logid":"2020091421494601002802214309181ADB",
            "now":1600091386890
        },
        "followings":[
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            {
                "accept_private_policy":false,
                "account_region":"",
                "apple_account":0,
                "authority_status":0,
                "avatar_168x168":{
                    "uri":"tos-cn-i-0813/7030b6575bac4968a822669e457d26b5",
                    "url_list":[
                        "https://p9-dy.byteimg.com/img/tos-cn-i-0813/7030b6575bac4968a822669e457d26b5~c5_168x168.webp?from=4010531038",
                        "https://p6-dy-ipv6.byteimg.com/img/tos-cn-i-0813/7030b6575bac4968a822669e457d26b5~c5_168x168.webp?from=4010531038",
                        "https://p3-dy-ipv6.byteimg.com/img/tos-cn-i-0813/7030b6575bac4968a822669e457d26b5~c5_168x168.webp?from=4010531038"
                    ]
                },
                "avatar_300x300":{
                    "uri":"tos-cn-i-0813/7030b6575bac4968a822669e457d26b5",
                    "url_list":[
                        "https://p3-dy-ipv6.byteimg.com/img/tos-cn-i-0813/7030b6575bac4968a822669e457d26b5~c5_300x300.webp?from=4010531038",
                        "https://p6-dy-ipv6.byteimg.com/img/tos-cn-i-0813/7030b6575bac4968a822669e457d26b5~c5_300x300.webp?from=4010531038",
                        "https://p9-dy.byteimg.com/img/tos-cn-i-0813/7030b6575bac4968a822669e457d26b5~c5_300x300.webp?from=4010531038"
                    ]
                },
                "avatar_larger":{
                    "uri":"tos-cn-i-0813/7030b6575bac4968a822669e457d26b5",
                    "url_list":[
                        "https://cache.yisu.com/upload/information/20210521/347/247872.jpg?from=4010531038",
                        "https://cache.yisu.com/upload/information/20210521/347/247876.jpg?from=4010531038",
                        "https://cache.yisu.com/upload/information/20210521/347/247878.jpg?from=4010531038"
                    ]
                },
                "avatar_medium":{
                    "uri":"tos-cn-i-0813/7030b6575bac4968a822669e457d26b5",
                    "url_list":[
                        "https://cache.yisu.com/upload/information/20210521/347/247881.jpg?from=4010531038",
                        "https://cache.yisu.com/upload/information/20210521/347/247886.jpg?from=4010531038",
                        "https://cache.yisu.com/upload/information/20210521/347/247887.jpg?from=4010531038"
                    ]
                },
                "avatar_thumb":{
                    "uri":"tos-cn-i-0813/7030b6575bac4968a822669e457d26b5",
                    "url_list":[
                        "https://cache.yisu.com/upload/information/20210521/347/247888.jpg?from=4010531038",
                        "https://cache.yisu.com/upload/information/20210521/347/247892.jpg?from=4010531038",
                        "https://cache.yisu.com/upload/information/20210521/347/247894.jpg?from=4010531038"
                    ]
                },
                "avatar_uri":"tos-cn-i-0813/7030b6575bac4968a822669e457d26b5",
                "bind_phone":"",
                "bio_info_permission":0,
                "birthday":"2017-01-01",
                "birthday_hide_level":0,
                "comment_filter_status":0,
                "comment_setting":0,
                "commerce_user_level":0,
                "constellation":0,
                "cover_url":[
                    {
                        "uri":"c8510002be9a3a61aad2",
                        "url_list":[
                            "http://p1-dy.byteimg.com/obj/c8510002be9a3a61aad2",
                            "http://p3-dy.byteimg.com/obj/c8510002be9a3a61aad2",
                            "http://p3-dy.byteimg.com/obj/c8510002be9a3a61aad2"
                        ]
                    }
                ],
                "create_time":0,
                "custom_verify":"",
                "cv_level":"",
                "default_download_setting":0,
                "download_prompt_ts":0,
                "download_setting":0,
                "duet_setting":0,
                "enterprise_verify_reason":"CCTV-1《经典咏流传》节目官方抖音账号",
                "follow_status":0,
                "follower_status":0,
                "gender":2,
                "geofencing":[
                ],
                "google_account":"",
                "has_email":false,
                "has_insights":false,
                "has_orders":false,
                "hide_location":false,
                "hide_search":false,
                "ins_id":"",
                "is_ad_fake":false,
                "is_binded_weibo":false,
                "is_gov_media_vip":false,
                "is_mirror":false,
                "is_phone_binded":false,
                "is_star_atlas":0,
                "is_verified":false,
                "language":"",
                "live_agreement":0,
                "live_agreement_time":0,
                "live_commerce":false,
                "live_verify":0,
                "need_recommend":0,
                "neiguang_shield":0,
                "nickname":"经典咏流传",
                "original_music_cover":null,
                "original_music_qrcode":null,
                "policy_version":[
                ],
                "prevent_download":false,
                "react_setting":0,
                "reflow_page_gid":0,
                "reflow_page_uid":0,
                "region":"CN",
                "room_id":0,
                "school_name":"",
                "school_poi_id":"",
                "school_type":0,
                "sec_uid":"MS4wLjABAAAA-CA-lq0X19hfiIPG6wA19xuXTJre1JrQX2jVD79OgRg",
                "secret":0,
                "share_qrcode_uri":"80fa0024ca1dc388297d",
                "shield_comment_notice":0,
                "shield_digg_notice":0,
                "shield_follow_notice":0,
                "short_id":"926253136",
                "signature":"文以载道,歌以咏志!",
                "special_lock":1,
                "status":1,
                "story_open":false,
                "twitter_id":"",
                "twitter_name":"",
                "type_label":[
                    189,
                    6766427600769255000
                ],
                "uid":"98297838633",
                "unique_id":"",
                "unique_id_modify_time":1550569152,
                "user_canceled":false,
                "user_mode":0,
                "user_period":0,
                "user_rate":1,
                "user_rate_map":{
                },
                "verification_type":1,
                "verify_info":"",
                "video_icon":{
                    "uri":"",
                    "url_list":[
                    ]
                },
                "video_icon_virtual_URI":"",
                "weibo_name":"",
                "weibo_schema":"",
                "weibo_url":"",
                "weibo_verify":"",
                "with_commerce_entry":false,
                "with_fusion_shop_entry":false,
                "youtube_channel_id":"",
                "youtube_channel_title":""
            }
        ],
        "has_more":true,
        "hotsoon_has_more":0,
        "hotsoon_text":"",
        "log_pb":{
            "impr_id":"2020091421494601002802214309181ADB"
        },
        "max_time":1597329058,
        "min_time":1557925977,
        "myself_user_id":"0",
        "offset":0,
        "rec_has_more":false,
        "status_code":0,
        "total":27
    },
    "msg":"success"
}

到此,关于“python如何实现用户关注列表”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注亿速云网站,小编会继续努力为大家带来更多实用的文章!

推荐阅读:
  1. 收集关注用户 以及关注文章
  2. C#开发微信门户及之关注用户列表及详细信息管理的示例分析

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

python

上一篇:python怎么实现用户粉丝列表

下一篇:html5发行的时间是什么

相关阅读

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

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