SyntaxFix
Write A Post
Hire A Developer
Questions
Based on previous answers this has worked for me with Python 3.7
from urllib.request import Request, urlopen req = Request('Url_Link', headers={'User-Agent': 'XYZ/3.0'}) webpage = urlopen(req, timeout=10).read() print(webpage)