Skip to main content

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

Project description

Unalix

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

Installation

Install using pip:

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

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 \
    'https://codeload.github.com/AmanoTeam/Unalix/tar.gz/refs/heads/master'

Note: Unalix requires Python 3.6 or higher.

Usage:

Removing tracking fields:

import unalix

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

assert result == "https://deezer.com/track/891177062"

Resolving shortened URL:

import unalix

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

assert result == "https://bitly.com/pages/pricing"

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.

Contributing

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.

Source Distribution

unalix_rev-0.9.tar.gz (161.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unalix_rev-0.9-py3-none-any.whl (166.6 kB view details)

Uploaded Python 3

File details

Details for the file unalix_rev-0.9.tar.gz.

File metadata

  • Download URL: unalix_rev-0.9.tar.gz
  • Upload date:
  • Size: 161.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.4 CPython/3.11.8

File hashes

Hashes for unalix_rev-0.9.tar.gz
Algorithm Hash digest
SHA256 a5c70ae6a260b151a7733188359fb4d991d6ad38b8a7aaf0587b2ac921a4fbe1
MD5 d659dcbbd16e0cffdca63b812a6aad07
BLAKE2b-256 28f0dc6372e888d77b16494f6abe991bba8953f62bc943ef5013dd2ab15dff4b

See more details on using hashes here.

File details

Details for the file unalix_rev-0.9-py3-none-any.whl.

File metadata

  • Download URL: unalix_rev-0.9-py3-none-any.whl
  • Upload date:
  • Size: 166.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.12.4 CPython/3.11.8

File hashes

Hashes for unalix_rev-0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2859adde700f2d888bd2b81b1829268ec6ad1b9c95988aa12a56731133f41a46
MD5 b9a7a716cef5cdc82cedfcda7b20ce3c
BLAKE2b-256 514b12a68a8f2832d2f33a3a0992df0470d0a354bf4919a162265e42528a54ba

See more details on using hashes here.

Supported by

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