from urllib.request import urlopen, Request
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.3'}
reg_url = "https://www.etsy.com"
req = Request(url=reg_url, headers=headers)
html = urlopen(req).read()
print(html)
I tried a lot of options to not get the 403 error. I used js, c#, python. But it didn’t work out. I also tried to use Proxy, but that didn’t work either. Help
New contributor
Денис Кураленко is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.