On How To
Here a simple demo for expand a bit.ly URL to its original URL. How to take a bit.ly link and return the fully expanded link? and you can check the status of the bitly link.

Here a simple demo for expand the bit.ly links with python simple requests module.

Question: How can I use Python to take a bit.ly link and return the fully expanded link?
If the link inputted is not a bit.ly link, the original link should be returned.

Eg url: http://bit.ly/digitalocean10Doff