Tools
Functions for extracting domains.
-
domain_extractor.extract_full_domain(url)[source]
Extracts the domain from an url
| Parameters: | url (str) – Url with https:// and /some/path |
| Returns: | domain name without protocol or path |
| Return type: | str |
-
domain_extractor.extract_top_domain(url)[source]
Extracts the domain from an url. Subdomains are ignored
| Parameters: | url (str) – Url with https:// and /some/path |
| Returns: | domain name without protocol, subdomains or path |
| Return type: | str |