提问人:Hackamous 提问时间:6/20/2021 更新时间:6/20/2021 访问量:97
如何使用 Python 获取网站上的标题
how do i get headers on a website with python
问:
为了给你一些背景信息,我正在构建一个僵尸网络,我需要从中获取授权标头 这是链接 https://discordapp.com/api/v6/users/@me
我已经试过了
user = requests.get( "https://discordapp.com/api/v6/users/@me", headers = {"Content-Type": "application/json", "Authorization": token}, ).json()
答:
1赞
Harris Minhas
6/20/2021
#1
请尝试使用以下方法。
response = requests.get("https://discordapp.com/api/v6/users/@me")
response.headers
您可以在以下链接中找到更多详细信息。
评论