Answers for "python requests function what user agent uses"

1

python requests set user agent

import requests

url = 'SOME URL'

headers = {
    'User-Agent': 'My User Agent 1.0',
    'From': '[email protected]'  # This is another valid field
}

response = requests.get(url, headers=headers)
Posted by: Guest on September-09-2020

Code answers related to "python requests function what user agent uses"

Python Answers by Framework

Browse Popular Code Answers by Language