from urllib.request import *
import random
url="http://acupunctureschoolonline.com/wp-content/uploads/2012/09/OrrisRoot.jpg"
# construct the request object
ua_list=[
"Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36 SE 2.X MetaSr 1.0",
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.87 Safari/537.36 OPR/37.0.2178.32,",
"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36",
]
user_agent=random.choice(ua_list)
headers={"User-Agent":user_agent}
request=Request(url,headers=headers)
# send a request
response=urlopen(request)