-->

How to expand a bit.ly URL to its original URL with simple python requests

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
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






You may like these posts

  1. To insert a code use <i rel="pre">code_here</i>
  2. To insert a quote use <b rel="quote">your_qoute</b>
  3. To insert a picture use <i rel="image">url_image_here</i>