Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- # Online Python - IDE, Editor, Compiler, Interpreter
- url = 'https://bit.ly/3EaoMpe'
- session = requests.Session()
- resp = session.head(url, allow_redirects=True)
- print(resp.url)
- Eredmény:
- https://www.pcguru.hu/pcguru/leiras_vegigj.php?id=43&page=2&nev=vegigjatszas
- Installált csomagok:
- Package Version
- ------------------ ---------
- certifi 2021.10.8
- charset-normalizer 2.0.8
- idna 3.3
- pip 21.3.1
- requests 2.26.0
- setuptools 59.4.0
- urllib3 1.26.7
Add Comment
Please, Sign In to add comment