I want to use urllib.requests, but I want the requests to allow redirects.
def get_html(url):
req = Request(url)
html = urlopen(req).read()
return html
I want code like this:
def get_html(url):
req = Request(url, allow_redirects=True)
html = urlopen(req).read()
return html