Categories
Python

Python tool to expand short URLs

In one of my last posts, I posted a code snippet which demonstrated how to use php to expand short URLs to their original long form. Here’s the Python version I coded a few minutes ago.

Python 3:

These codes are for Python 3. The tool was developed for CLI use.