📅  最后修改于: 2022-03-11 14:45:12.908000             🧑  作者: Mango
import requests
url = 'SOME URL'
headers = {
'User-Agent': 'My User Agent 1.0',
'From': 'youremail@domain.com' # This is another valid field
}
response = requests.get(url, headers=headers)