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:
-
ClearURLs
- Author: Kevin Röbert
- Repository: ClearURLs/Rules
- License: GNU Lesser General Public License v3.0
-
Requests
- Author: Kenneth Reitz
- Repository: psf/requests
- License: Apache v2.0
-
Pyrogram
- Author: Dan
- Repository: pyrogram/pyrogram
- License: LGPL-3.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0907cffeab8b98b8857369d6ff5f636f4d3cb40d3fab7da6c8c0cb09c550f213
|
|
| MD5 |
da6aebe63ec5666d367d4011f496fa68
|
|
| BLAKE2b-256 |
8ae71c46b2987159ad06f57a84e535558a0c418373192416721f29f400b5c907
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
feb7c9ff79d0e4d37d2f8121b992a5b82a5f9d9426fff973b4c267280e8244aa
|
|
| MD5 |
a1b6048bd10856a14e72025704f3fa5b
|
|
| BLAKE2b-256 |
710a371f62222dd4b39ba89fa54e4e33a7856b4c64624efb54be74ec5af9ee5d
|