Skip to main content

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

Project description

Unalix is a small, dependency-free, fast Python package that implements the same regex rule processing mechanism used by the ClearURLs addon.

Installation

Install using pip:

pip3 install --force-reinstall \
    --disable-pip-version-check \
    --upgrade 'unalix'

Note: Unalix requires Python 3.6 or higher.

Usage:

Removing tracking fields:

from unalix import clear_url

url = "https://deezer.com/track/891177062?utm_source=deezer"
result = clear_url(url)

print(result)

Unshort shortened URL:

from unalix import unshort_url

url = "https://bitly.is/Pricing-Pop-Up"
result = unshort_url(url)

print(result)

Output from both examples:

https://deezer.com/track/891177062
https://bitly.com/pages/pricing

Contributing

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

If you found a URL that was not fully cleaned by Unalix (e.g. some tracking fields still remains), report them here or in the ClearURLs addon repository. We use the list of regex rules maintained by the ClearURLs maintainers, but we also have our own list.

Third party software

Unalix includes some third party software. 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.

Source Distribution

Unalix-0.6.tar.gz (16.5 kB view hashes)

Uploaded Source

Built Distribution

Unalix-0.6-py3-none-any.whl (148.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page