how to pass header in requests

import requests
r=requests.get("", headers={"content-type":"text"})

Here is what the above code is Doing:
1. We’re creating a dictionary with a key of content-type and a value of text.
2. We’re passing that dictionary into the headers parameter of the get() method.
3. We’re assigning the response to the variable r.

The headers parameter is a dictionary of headers to send along with our request.
In this case, we’re specifying that we want the server to send us back plain text.
If we don’t specify this, the server will send us back HTML by default.