Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Improve the Request Change User-Agent

import requests 
 
url = 'https://www.codegrepper.com/'
 
headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
}
 
response = requests.get(url, headers=headers)
print(response)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Improve #Request #Change
ADD COMMENT
Topic
Name
6+6 =