Python怎么实现用户搜索功能

发布时间:2022-03-21 16:29:43 作者:iii
来源:亿速云 阅读:275

这篇文章主要介绍了Python怎么实现用户搜索功能的相关知识,内容详细易懂,操作简单快捷,具有一定借鉴价值,相信大家阅读完这篇Python怎么实现用户搜索功能文章都会有所收获,下面我们一起来看看吧。

用户搜索

请求API

http://主机地址/kwshow/search/users?token=xxx&keyword=美女

请求方式

GET

参数

字段类型说明
tokenstring接口授权码
keywordstring搜索关键词
cursorint翻页游标,根据结果返回的cursor传入作为下一页翻页参数,初始为0

返回示例

{
    "code": 200,
    "data": {
        "result": 1,
        "pcursor": "3",
        "host-name": "bjzyx-c3910.zqy",
        "ussid": "MzAwXzE3NTMxODM4OTZfMTYwNTMxNzQ5NDA3Nl9fNjQ5Mg",
        "users": [
            {
                "kwaiId": "pppjjjy6",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 1216146931,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240145.jpg",
                "user_text": "用伊对找对象,真的靠谱",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240145.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240146.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/08/18/16/BMjAyMDA4MTgxNjI2NTNfMTIxNjE0NjkzMV8xX2hkMjMxXzQ4Mg==_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "美女等你在本地"
            },
            {
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 607954334,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240147.jpg",
                "user_text": "感谢相遇,这场生命中最美的遇见,希望能长久能开心,不负遇见!",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240147.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240148.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/06/13/17/BMjAyMDA2MTMxNzUzMzNfNjA3OTU0MzM0XzFfaGQ2ODhfNDky_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "琴琴美女来了"
            },
            {
                "kwaiId": "s520888888",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 298053996,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240149.jpg",
                "user_text": "感谢快手提供的绿色直播平台!\n街拍分享不同类型作品和美女????",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240149.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240150.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2019/07/03/16/BMjAxOTA3MDMxNjIyNDZfMjk4MDUzOTk2XzFfaGQ4MzhfMjk2_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "厦门美女街拍榜"
            },
            {
                "kwaiId": "dazi9309",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 388473775,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240151.jpg",
                "user_text": "带你们看什么叫真正的美女\n如果口味相同,请留个关注",
                "user_sex": "M",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240151.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240152.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/01/29/09/BMjAyMDAxMjkwOTE5NDNfMzg4NDczNzc1XzJfaGQ3OThfNDMx_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "达哥(收藏美女)"
            },
            {
                "kwaiId": "mote5566",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 2058895067,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240153.jpg",
                "user_text": "感谢快手提供平台:",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240153.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240154.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/10/24/12/BMjAyMDEwMjQxMjI5MTJfMjA1ODg5NTA2N18xX2hkODhfNTMw_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "美女模特"
            },
            {
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 1657623,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240155.jpg",
                "user_text": "关注我,你就是姐姐的人了,要开心哟^_^\n如有侵权请告知删除",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240155.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240156.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/11/12/11/BMjAyMDExMTIxMTU2MjFfMTY1NzYyM18xX2hkODI5XzY0NA==_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "姐姐带你看美女"
            },
            {
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 1970546107,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240157.jpg",
                "user_text": "本人单身\n\n喜欢就关注我一下吧",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240157.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240158.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/09/10/08/BMjAyMDA5MTAwODQwNDFfMTk3MDU0NjEwN18xX2hkNTQ4XzM3NA==_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "美女裁判太阳姐"
            },
            {
                "kwaiId": "dedaoxitong",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 31896005,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240159.jpg",
                "user_text": "谢谢你的关注 每天中午12点 晚上八点更新视频\n晚上八点直播\n????助理V:15685723805\n????创业V:weo1818\n????记住我的名字和我带给你的故事!",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240159.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240160.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/07/20/22/BMjAyMDA3MjAyMjA0MTVfMzE4OTYwMDVfMV9oZDI4N18xOTU=_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "我的美女BOSS呀"
            },
            {
                "kwaiId": "liuwei0828",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 767396765,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240161.jpg",
                "user_text": "喜欢的依旧喜欢着。❤️",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240161.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240162.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/08/06/06/BMjAyMDA4MDYwNjQ4NDBfNzY3Mzk2NzY1XzFfaGQ4MDdfNDA3_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "刘大美女.❣"
            },
            {
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 1046313745,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240163.jpg",
                "user_text": "想看美女就点关注。",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240163.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240164.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/07/28/18/BMjAyMDA3MjgxODI1NDJfMTA0NjMxMzc0NV8yX2hkNjRfOTQw_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "图片美女姐"
            },
            {
                "kwaiId": "UFMT99ha",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 1740024015,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240165.jpg",
                "user_text": "感谢快手官方呀 爱宁????\n⭐️UFMT88(接推)备注来意\n喜欢美女 分享美女 可投稿!",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240165.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240166.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/02/20/23/BMjAyMDAyMjAyMzI5MzlfMTc0MDAyNDAxNV8xX2hkNTAwXzY3MQ==_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "美女鉴定所8"
            },
            {
                "kwaiId": "wml23876asd",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 1812432980,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240167.jpg",
                "user_text": "拿原图➕QQ:10339159(相册)\n接推广(骗人不要来)或者投稿 加Q3095616832 风格不定",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240167.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240168.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/11/13/23/BMjAyMDExMTMyMzA0NTNfMTgxMjQzMjk4MF8yX2hkNjg3XzY3NQ==_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "美女生吃一个人"
            },
            {
                "kwaiId": "sm090717",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 75586604,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240169.jpg",
                "user_text": "????她正在关注你哦\n\n私信有空就回,一般不看私信????",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240169.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240170.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/03/07/22/BMjAyMDAzMDcyMjE5MzVfNzU1ODY2MDRfMV9oZDY3Nl81MjI=_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "i-美女女????"
            },
            {
                "kwaiId": "jltd7777",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 1854383536,
                "headurl": "https://tx2.a.yximgs.com/uhead/AB/2020/10/02/11/BMjAyMDEwMDIxMTAwMDRfMTg1NDM4MzUzNl8yX2hkMjk0XzQ3Ng==_s.jpg",
                "user_text": "世界美女尽收眼底",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://tx2.a.yximgs.com/uhead/AB/2020/10/02/11/BMjAyMDEwMDIxMTAwMDRfMTg1NDM4MzUzNl8yX2hkMjk0XzQ3Ng==_s.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://js2.a.yximgs.com/uhead/AB/2020/10/02/11/BMjAyMDEwMDIxMTAwMDRfMTg1NDM4MzUzNl8yX2hkMjk0XzQ3Ng==_s.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/10/02/11/BMjAyMDEwMDIxMTAwMDRfMTg1NDM4MzUzNl8yX2hkMjk0XzQ3Ng==_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "美女模特"
            },
            {
                "kwaiId": "xiaotiantian666",
                "following": false,
                "verified": false,
                "visitorBeFollowed": false,
                "user_id": 531508502,
                "headurl": "https://cache.yisu.com/upload/information/20210521/347/240171.jpg",
                "user_text": "????感谢陪伴 你来我热情相拥\n\n只有一个v✉️:1021053253",
                "user_sex": "F",
                "headurls": [
                    {
                        "cdn": "tx2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240171.jpg"
                    },
                    {
                        "cdn": "js2.a.yximgs.com",
                        "url": "https://cache.yisu.com/upload/information/20210521/347/240172.jpg",
                        "urlPattern": "https://js2.a.yximgs.com/uhead/AB/2020/06/24/18/BMjAyMDA2MjQxODU1MDhfNTMxNTA4NTAyXzFfaGQ2NjRfODE2_s.jpg@base@tag%3DimgScale%26r%3D0%26q%3D85%26w%3D{w}%26h%3D{h}%26rotate"
                    }
                ],
                "isFavorited": false,
                "user_name": "美女姐姐_Tian????"
            }
        ]
    },
    "msg": "success",
    "app": "kwshow"
}

关于“Python怎么实现用户搜索功能”这篇文章的内容就介绍到这里,感谢各位的阅读!相信大家对“Python怎么实现用户搜索功能”知识都有一定的了解,大家如果还想学习更多知识,欢迎关注亿速云行业资讯频道。

推荐阅读:
  1. Vuejs怎么实现搜索匹配功能
  2. javascript实现简单搜索功能

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

python

上一篇:Python怎么显示用户直播信息

下一篇:android怎么显示用户信息

相关阅读

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

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