Python - Get Tinyurl Target
Last Updated: 2352Z 29MAR21
(Created: 2352Z 29MAR21)
Get the target url of a TinyURL link
Examples:
import httplib2
URL_SHORT = 'https://tinyurl.com/57k9mb6s'
http = httplib2.Http()
headers, _ = http.request(URL_SHORT, 'HEAD')
print(headers['location'])
# https://www.alternet.org/2021/02/texas-cold-snap/