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"
Unshort 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
Metadata
Release files for Unalix 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Unalix-0.9-py3-none-any.whl | Python 3 | none | any | Details |
Release files / Unalix-0.9-py3-none-any.whl
| Download URL | Unalix-0.9-py3-none-any.whl |
|---|---|
| Size | 153.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5b185b5a28b9fa485bd4c7bc2531da09e0e58e9b3bc1229fd625ac2d6d64d1c
|
|
BLAKE2b-256 checksum How to use checksums |
b96eab75303b145fc59386a30fec31226d5797397b85e60ac1b02edd0b7a9b04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.11.0a1+
|
Security for Unalix 0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.