import requests
url = 'SOME URL'
headers = requests.utils.default_headers()
headers.update({'User-Agent': 'My User Agent 1.0'})
response = requests.get(url, headers=headers)
Sending "User-agent" using Requests library in Python