how do i get headers on a website with python

123 Views Asked by At

to give you some context i am building a botnet and i need to get the authorization header from here is the link https://discordapp.com/api/v6/users/@me

I have already tried this

user = requests.get( "https://discordapp.com/api/v6/users/@me", headers = {"Content-Type": "application/json", "Authorization": token}, ).json()

1

There are 1 best solutions below

0
On

Try using the following way.

response = requests.get("https://discordapp.com/api/v6/users/@me")
response.headers

You can find further details at the following link.