url-parsing

Redact and remove password from URL

Redact and remove password from URL Question: I have an URL like this: https://user:[email protected]/path?key=value#hash The result should be: https://user:[email protected]/path?key=value#hash I could use a regex, but instead I would like to parse the URL a high level data structure, then operate on this data structure, then serializing to a string. Is this possible with Python? Asked …

Total answers: 2