zl程序教程

您现在的位置是:首页 >  其它

当前栏目

抖音 uid转sec_uid

抖音 UID Sec
2023-06-13 09:17:24 时间

标题

环境

win10 Python3.9 PyQt5

效果

uid转sec_uid

def get_uid(self, uid):
    headers = {
        "Accept": "application/json, text/plain, */*",
        "Referer": "https://www.douyin.com/",
        "Accept-Language": "zh-CN,zh;q=0.9",
        "Proxy-Tunnel": str(random.randint(1, 10000))  # 设置IP切换头
    }
    response = requests.get(url, headers=headers)
    print(response.text)
    user_info = response.json()
    if not user_info:
        return None
    sec_uid = user_info.get("sec_uid")
    nickname = user_info.get("nickname")
    return sec_uid, nickname

资源下载

https://download.csdn.net/download/qq_38154948/87561029

[链接:https://pan.baidu.com/s/193gj615q3FUdyVzs4-Cp2A?pwd=pw7r

提取码:pw7r](%E9%93%BE%E6%8E%A5%EF%BC%9Ahttps://pan.baidu.com/s/193gj615q3FUdyVzs4-Cp2A?pwd=pw7r)


本文仅供学习交流使用,如侵立删!