import requests
url = 'SOME URL'
headers = {'User-Agent': 'My User Agent 1.0', 'From': 'youremail@domain.com'}
response = requests.get(url, headers=headers)
Sending "User-agent" using Requests library in Python