Short Python 3 script to remove tracking parameters from URLs.
git clone https://github.com/remino/purifyurl
cd purifyurl
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
deactivate
./purifyurl 'https://youtu.be/abc&feature=def'
# https://www.youtube.com/watch?v=abc
echo 'Go to https://youtu.be/abc&feature=def to watch the video.' | ./purifyurl
# Go to https://www.youtube.com/watch?v=abc to watch the video.
See ./purifyurl --help
for more options.
This script uses the following libraries or sources: