maps.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:tuxbot-bot 作者: outout14 项目源码 文件源码
def get_new_splatnet_cookie(username, password):
    parameters = {'client_id': SPLATNET_CLIENT_ID,
                  'response_type': 'code',
                  'redirect_uri': SPLATNET_CALLBACK_URL,
                  'username': username,
                  'password': password}

    async with aiohttp.post(NINTENDO_LOGIN_PAGE, data=parameters) as response:
        cookie = response.history[-1].cookies.get('_wag_session')
        if cookie is None:
            print(req)
            raise Exception("Couldn't retrieve cookie")
        return cookie
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号