I need to get the final URL after redirection in python.
What's a good way to do that?
I need to get the final URL after redirection in python.
What's a good way to do that?
>>> import urllib2
>>> var = urllib2.urlopen('http://www.stackoverflow.com/')
>>> var.geturl()
'http://stackoverflow.com/'