/pyclearurls

Python implementation of ClearURLs add-on.

Primary LanguagePythonMIT LicenseMIT

pyClearURLs

Python implementation of ClearURLs add-on, based on pilate's work.

Rules can be found here: ClearURLs Rules.

Installation

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

Usage

from pyclearurls import URLCleaner

cleaner = URLCleaner()

print(cleaner.clean("https://www.amazon.com/dp/exampleProduct/ref=sxin_0_pb?__mk_de_DE=dsa"))

License

This source code is licensed under the MIT license found in the LICENSE file.