python requests cannot find existing url

37

# credit to the user in the source link

headers = {'User-Agent': 'My User Agent 1.0', 'From': '[email protected]'}

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

Comments

Submit
0 Comments