unalix

Small, dependency-free, fast Nim package (and CLI tool) for removing tracking fields from URLs.


Keywords
internet, security, nim
License
LGPL-3.0
Install
nimble install unalix

Documentation

Unalix is a small, dependency-free, fast Nim package (and CLI tool) that implements the same regex rule processing mechanism used by the ClearURLs addon.

This is a Nim port from Unalix. Python package

Installation

Install using nimble:

nimble install --accept 'git://github.com/AmanoTeam/Unalix-nim'

Library usage:

Removing tracking fields:

import unalix/core/url_cleaner

const url: string = "https://deezer.com/track/891177062?utm_source=deezer"
let result: string = clearUrl(url)

echo result

Unshort shortened URL:

import unalix/core/url_unshort

const url: string = "https://bitly.is/Pricing-Pop-Up"
let result: string = unshortUrl(url)

echo result

Output from both examples:

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

CLI usage:

unalix --unshort <<- heredoc
    https://deezer.com/track/891177062?utm_source=deezer
    https://bitly.is/Pricing-Pop-Up
heredoc

Output:

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

Run unalix --help to see the list of arguments

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 rules 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 in its codebase. See them below: