Skip to main content

Small, dependency-free, fast Python package for removing tracking fields from URLs.

Project description

Unalix is a library written in Python, it implements the specification used by the ClearURLs addon for removing tracking fields from URLs.


Install using pip:

python3 -m pip install --force-reinstall \
    --disable-pip-version-check \
    --upgrade \

The version from git might be broken sometimes, but you can also install from it:

python3 -m pip install --force-reinstall \
    --disable-pip-version-check \
    --upgrade \

Note: Unalix requires Python 3.6 or higher.


Removing tracking fields:

import unalix

url: str = ""
result: str = unalix.clear_url(url=url)

assert result == ""

Unshort shortened URL:

import unalix

url: str = ""
result: str = unalix.unshort_url(url=url)

assert result == ""

Tip: The unshort_url() method will strip tracking fields from any URL before following a redirect, so you don't need to manually call clear_url() for it's return value.


If you have discovered a bug in this library and know how to fix it, fork this repository and open a Pull Request.

Third party software

Unalix includes some third party software in its codebase. See them below:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

Unalix-0.9-py3-none-any.whl (153.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page