I'm trying to retrieve the URL details after I enter it. When I go to this URL https://entropystream.live/PLAIDARMY it is going to be reversed into this https://entropystream.live/not-found/PLAIDARMY/no-stream and this what I want. I want to get the next URL details (after conversion).
I tried using the following code but this can't get me the details after conversion:
from urllib.parse import urlparse
url = "https://entropystream.live/PLAIDARMY"
parts = urlparse(url)
print(parts)
output:
ParseResult(scheme='https', netloc='entropystream.live', path='/PLAIDARMY', params='', query='', fragment='')
I want to get the details after conversion so I can have "no-stream" in the output.