Tools for cleaning up links
Project description
clean-links
Tools for cleaning up links.
Remove cruft from URLs using the rules from https://github.com/ClearURLs/Rules
Unshorten URLs by making requests and following redirects.
Are these two links the same?
link1 = "https://trib.al/5m7fAg3"
link2 = "https://bit.ly/dirtylank"
resolved1 = unshorten_url(link1).get("resolved")
cleaned1 = clear_url(resolved1)
resolved2 = unshorten_url(link2).get("resolved")
cleaned2 = clear_url(resolved2)
cleaned1 == cleaned2 # True!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
clean_links-0.1.3.tar.gz
(26.1 kB
view details)
Built Distribution
File details
Details for the file clean_links-0.1.3.tar.gz
.
File metadata
- Download URL: clean_links-0.1.3.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 601d5142fc4082ce5d1acbae34923bbbe7db49431938db403c9c59340ea693e2 |
|
MD5 | e4ec9bb60bf57b9f1d5310a0ed8ac679 |
|
BLAKE2b-256 | 419ee97c46922b2712ea7e93018d16e98f5ba3d4b6d3385e87d5548c8f04d5ae |
File details
Details for the file clean_links-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: clean_links-0.1.3-py3-none-any.whl
- Upload date:
- Size: 26.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.12.1 Linux/6.2.0-1019-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c718f459c6cda4fec6c595c9b60fde4ef933b90ce9cfb26be30dabed5a14e33 |
|
MD5 | 05815f9309efe1ca09127f7d77c6206a |
|
BLAKE2b-256 | 0225ac7c5892dd978c7f142fc0668d8647eb1304fec09decc41f82a215b91416 |