urlExpander is a Python package for quickly and thoroughly expanding shortened URLs.
This package makes working with link data from social media and webpages easier. It not only expands links, but catches errors, and makes parallel link expansion quick and efficient.
import urlexpander urlexpander.expand('https://trib.al/xXI5ruM')
Please take a look at the quickstart.