yabirgb / domain_utils

A collection of util functions for extracting domains from urls.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

domain_utils

CircleCI Documentation Status

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.

Community Participation Guidelines

This project is governed by Mozilla's code of conduct and etiquette guidelines.

For more details, please read the Mozilla Community Participation Guidelines.

For more information on how to report violations of the Community Participation Guidelines, please read our How to Report page.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

About

A collection of util functions for extracting domains from urls.

License:Mozilla Public License 2.0


Languages

Language:Python 89.2%Language:Makefile 10.8%