📅  最后修改于: 2022-03-11 14:45:44.963000             🧑  作者: Mango
# credit to the user in the source link
headers = {'User-Agent': 'My User Agent 1.0', 'From': 'youremail@domain.com'}
response = requests.get(url, headers = headers)
# use authentic mozilla or chrome user - agent strings if this doesn't work
# NOTE: this solved a problem I had. It may not be yours