Python implementation of ClearURLs add-on, based on pilate's work.
Rules can be found here: ClearURLs Rules.
Git to clone the repository from GitHub to install the latest development version:
git clone https://github.com/mromanelli9/pyclearurls
cd pyclearurls
pip install .
Alternatively, install directly from the GitHub repository:
pip install git+https://github.com/mromanelli9/pyclearurls
from pyclearurls import URLCleaner
cleaner = URLCleaner()
print(cleaner.clean("https://www.amazon.com/dp/exampleProduct/ref=sxin_0_pb?__mk_de_DE=dsa"))
This source code is licensed under the MIT license found in the LICENSE file.