get_url_domain#

get_url_domain(url)[source]#

Redact URL so that only domain is displayed.

Some services e.g. infura use path as an API key.

Parameters:

url (str) –

Return type:

str