📜  python 请求找不到现有的 url - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:44.963000             🧑  作者: Mango

代码示例1
# 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