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