溫馨提示×

溫馨提示×

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

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

python如何實(shí)現(xiàn)用戶關(guān)注列表

發(fā)布時(shí)間:2022-03-17 17:05:09 來源:億速云 閱讀:203 作者:iii 欄目:大數(shù)據(jù)

這篇文章主要介紹“python如何實(shí)現(xiàn)用戶關(guān)注列表”,在日常操作中,相信很多人在python如何實(shí)現(xiàn)用戶關(guān)注列表問題上存在疑惑,小編查閱了各式資料,整理出簡單好用的操作方法,希望對大家解答”python如何實(shí)現(xiàn)用戶關(guān)注列表”的疑惑有所幫助!接下來,請跟著小編一起來學(xué)習(xí)吧!

抖音用戶關(guān)注列表Api:

請求Api

http://主機(jī)地址/douyin/user/followings?token=xxx&uid=100000004548&cursor=1577594707000

請求方式

GET

參數(shù)

字段類型說明
tokenstring接口授權(quán)碼
uidint用戶id
cursorint翻頁游標(biāo),根據(jù)結(jié)果返回的cursor傳入作為下一頁翻頁參數(shù),初始為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《經(jīng)典詠流傳》節(jié)目官方抖音賬號(hào)",
                "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":"經(jīng)典詠流傳",
                "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"
}

到此,關(guān)于“python如何實(shí)現(xiàn)用戶關(guān)注列表”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請繼續(xù)關(guān)注億速云網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)砀鄬?shí)用的文章!

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

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

AI