乐于分享
好东西不私藏

企查查APP 登录+采集算法分析 Authorization,sign,device_Id

企查查APP 登录+采集算法分析 Authorization,sign,device_Id

声明

本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口  等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关! 有相关问题请第一时间点击头像看简介或私信联系我删除博客!

wx:2766958292

 部分python 代码

def call_api(url: str, params: dict, method: str = "get") -> dict:    token = ensure_token()    params = _signed(params)    headers = {        "Authorization""Bearer " + token["access_token"],    }    fn = requests.getifmethod == "getelserequests.post    r = fn(url, headers=headers, params=params if method == "get"else None,           data=params if method == "post" else None, timeout=10, verify=False)    return r.json()if __name__ == "__main__":    print("deviceId       =", DEVICE_ID)    print("deviceUniqueId =", DEVICE_UNIQUE_ID)    body = login_and_save(        account_type="2",        key="oX2R8jiHQ8rSFf_5FRzmQ8_vBq2Y",        token="",    )    print("login status   =", body.get("status"), body.get("message"))    if body.get("result"):        print("user phone     =", body["result"].get("userInfo", {}).get("encryPhone"))        print("saved token    =", body["result"].get("token", {}).get("access_token"))    detail = call_api(        "/detail",        {            "unique""",            "sourcePage""search",        },    )    print("detail status  =", detail.get("status"), detail.get("message"))

结果

总结

1.出于安全考虑,本章未提供完整流程,调试环节省略较多,只提供大致思路,具体细节要你自己还原,相信你也能调试出来。
2.具体更多细节请看名字进入详情了解更多细节,具体细节要你自己还原,相信你也能调试出来。