溫馨提示×

溫馨提示×

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

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

python怎么實現(xiàn)熱門話題推薦功能

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

本文小編為大家詳細(xì)介紹“python怎么實現(xiàn)熱門話題推薦功能”,內(nèi)容詳細(xì),步驟清晰,細(xì)節(jié)處理妥當(dāng),希望這篇“python怎么實現(xiàn)熱門話題推薦功能”文章能幫助大家解決疑惑,下面跟著小編的思路慢慢深入,一起來學(xué)習(xí)新知識吧。

熱門話題推薦

請求Api

http://主機(jī)地址/douyin/feed/funnytags?token=xxx

請求方式

GET

參數(shù)

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

返回示例

{
    "code":200,
    "data":{
        "category_list":[
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            Object{...},
            {
                "challenge_info":{
                    "author":{
                        "ad_cover_url":null,
                        "can_set_geofencing":null,
                        "cha_list":null,
                        "cover_url":null,
                        "followers_detail":null,
                        "geofencing":null,
                        "homepage_bottom_toast":null,
                        "item_list":null,
                        "need_points":null,
                        "new_story_cover":null,
                        "platform_sync_info":null,
                        "relative_users":null,
                        "type_label":null,
                        "user_tags":null,
                        "white_cover_url":null
                    },
                    "banner_list":null,
                    "category_cover_info":{
                        "aweme_id":"6872304402133257487",
                        "cover":{
                            "uri":"tos-cn-p-0015/367b488536a54648a8ca71f62276b47d",
                            "url_list":[
                                "https://cache.yisu.com/upload/information/20210521/347/246146.jpg?from=2563711402_large",
                                "https://cache.yisu.com/upload/information/20210521/347/246147.jpg?from=2563711402_large",
                                "https://cache.yisu.com/upload/information/20210521/347/246148.jpg?from=2563711402_large"
                            ]
                        },
                        "dynamic_cover":{
                            "uri":"tos-cn-p-0015/411a0c5cbf214163a88669531923b1bd_1600083062",
                            "url_list":[
                                "https://p3-dy-ipv6.byteimg.com/obj/tos-cn-p-0015/411a0c5cbf214163a88669531923b1bd_1600083062?from=2563711402_large",
                                "https://p6-dy-ipv6.byteimg.com/obj/tos-cn-p-0015/411a0c5cbf214163a88669531923b1bd_1600083062?from=2563711402_large",
                                "https://p29-dy.byteimg.com/obj/tos-cn-p-0015/411a0c5cbf214163a88669531923b1bd_1600083062?from=2563711402_large"
                            ]
                        }
                    },
                    "cha_attrs":null,
                    "cha_name":"罔1云歌名起風(fēng)了",
                    "cid":"1674728436234252",
                    "collect_stat":0,
                    "connect_music":[
                    ],
                    "desc":"",
                    "extra_attr":{
                        "is_live":false
                    },
                    "hashtag_profile":"tos-cn-p-0015/261b04c24ba24d02afc39b762a5567e5",
                    "is_challenge":0,
                    "is_commerce":false,
                    "is_pgcshow":false,
                    "schema":"aweme://aweme/challenge/detail?cid=1674728436234252",
                    "share_info":{
                        "bool_persist":0,
                        "share_desc":"在抖音,記錄美好生活",
                        "share_desc_info":"我在抖音參加#罔1云歌名起風(fēng)了 ",
                        "share_quote":"",
                        "share_signature_desc":"",
                        "share_signature_url":"",
                        "share_title":"我在抖音參加#罔1云歌名起風(fēng)了 ",
                        "share_title_myself":"",
                        "share_title_other":"",
                        "share_url":"https://www.iesdouyin.com/share/challenge/1674728436234252/?u_code=0",
                        "share_weibo_desc":"我在抖音參加#罔1云歌名起風(fēng)了 "
                    },
                    "show_items":null,
                    "sub_type":0,
                    "type":1,
                    "user_count":0,
                    "view_count":0
                }
            }
        ],
        "cursor":10,
        "extra":{
            "fatal_item_ids":[
            ],
            "logid":"20200914234019010144040206382C40F3",
            "now":1600098019000
        },
        "has_more":1,
        "log_pb":{
            "impr_id":"20200914234019010144040206382C40F3"
        },
        "status_code":0
    },
    "msg":"success"
}

讀到這里,這篇“python怎么實現(xiàn)熱門話題推薦功能”文章已經(jīng)介紹完畢,想要掌握這篇文章的知識點(diǎn)還需要大家自己動手實踐使用過才能領(lǐng)會,如果想了解更多相關(guān)內(nèi)容的文章,歡迎關(guān)注億速云行業(yè)資訊頻道。

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

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

AI