Skip to content

Instantly share code, notes, and snippets.

@jorilallo
Created March 15, 2011 20:12
Show Gist options
  • Save jorilallo/871362 to your computer and use it in GitHub Desktop.
Save jorilallo/871362 to your computer and use it in GitHub Desktop.
Destination of short url
# Source: http://stackoverflow.com/questions/2454149/python-detect-destination-of-shortened-or-tiny-url
import urllib2
response = urllib2.urlopen("http://bit.ly/AoifeMcL_ID3") # Some shortened url
url_destination = response.url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment