Guest User

shortlink.py

a guest
Nov 29th, 2021
38
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import requests
  2. # Online Python - IDE, Editor, Compiler, Interpreter
  3. url = 'https://bit.ly/3EaoMpe'
  4.  
  5. session = requests.Session()
  6. resp = session.head(url, allow_redirects=True)
  7. print(resp.url)
  8.  
  9. Eredmény:
  10. https://www.pcguru.hu/pcguru/leiras_vegigj.php?id=43&page=2&nev=vegigjatszas
  11.  
  12.  
  13. Installált csomagok:
  14. Package            Version
  15. ------------------ ---------
  16. certifi            2021.10.8
  17. charset-normalizer 2.0.8
  18. idna               3.3
  19. pip                21.3.1
  20. requests           2.26.0
  21. setuptools         59.4.0
  22. urllib3            1.26.7
RAW Paste Data Copied