demo_requests_response_is_permanent_redirect.py:
import requests url = 'https://www.w3schools.com/python/demopage.htm' x = requests.get(url) print(x.is_permanent_redirect)
C:\Users\My Name>python demo_requests_response_is_permanent_redirect.py
False