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:

pip install Unalix-Rev

Note: Unalix requires Python 3.7 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.1.tar.gz (161.4 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.1-py3-none-any.whl (166.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: unalix_rev-0.9.1.tar.gz
  • Upload date:
  • Size: 161.4 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.1.tar.gz
Algorithm Hash digest
SHA256 0907cffeab8b98b8857369d6ff5f636f4d3cb40d3fab7da6c8c0cb09c550f213
MD5 da6aebe63ec5666d367d4011f496fa68
BLAKE2b-256 8ae71c46b2987159ad06f57a84e535558a0c418373192416721f29f400b5c907

See more details on using hashes here.

File details

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

File metadata

  • Download URL: unalix_rev-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 166.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 feb7c9ff79d0e4d37d2f8121b992a5b82a5f9d9426fff973b4c267280e8244aa
MD5 a1b6048bd10856a14e72025704f3fa5b
BLAKE2b-256 710a371f62222dd4b39ba89fa54e4e33a7856b4c64624efb54be74ec5af9ee5d

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