A collection of util functions for extracting domains from urls.
Project description
domain_utils
A collection of util functions for extracting domains from urls.
Repo: https://github.com/mozilla/domain_utils
Install:
pip install domain_utils
Use:
import domain_utils as du # Return just the url `my.domain.cloudfront.net/a/path/to/a/file.html` du.get_stripped_url('https://my.domain.cloudfront.net/a/path/to/a/file.html?a=1') # Return just the eTLD+1 `domain.cloudfront.net` du.get_stripped_url('https://my.domain.cloudfront.net/a/path/to/a/file.html?a=1')
This package was originally extracted from openwpm-utils.
Free software: Mozilla Public License license
Documentation: https://domain-utils.readthedocs.io.
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.4.0 (2020-03-25)
Remove py27 support
0.3.0 (2020-03-25)
Restore py27 support.
Last version with py27 support.
Remove tox
0.2.0 (2020-03-24)
Extracted from https://github.com/mozilla/openwpm-utils/blob/master/openwpm_utils/domain.py
Removed python 2 support and dependencies
Removed broken get_stripped_urls function
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for domain_utils-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | babfb3952918a5627bcf6c6cba60642397012d3c602d2d519d7fa999abf7008a |
|
MD5 | 1859632c60d29db576dbbc3ff84474c6 |
|
BLAKE2b-256 | 17b3f041623409109af20ebd90b89821cb6778a1200d89abee11103e54e8140b |