How can I unshorten a URL using python?

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-11-17T02:56:30Z Indexed on 2011/01/11 22:53 UTC
Read the original article Hit count: 214

I want to be able to take a shortened or non-shortened URL and return its un-shortened form. How can I make a python program to do this?

Additional Clarification:

Case 1: shortened --> unshortened
Case 2: unshortened --> unshortened

e.g. bit.ly/silly in the input array should be google.com in the output array
e.g. google.com in the input array should be google.com in the output array

Thanks for the help!

© Stack Overflow or respective owner

Related posts about python

Related posts about url