( jacem | 2021. 11. 26., p – 22:44 )

import requests

url = 'https://tinyurl.com/valami'
session = requests.Session()  # so connections are recycled
resp = session.head(url, allow_redirects=True)
print(resp.url)

Forrás: link