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 hashes)
Built Distribution
Close
Hashes for clean_links-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c718f459c6cda4fec6c595c9b60fde4ef933b90ce9cfb26be30dabed5a14e33 |
|
MD5 | 05815f9309efe1ca09127f7d77c6206a |
|
BLAKE2b-256 | 0225ac7c5892dd978c7f142fc0668d8647eb1304fec09decc41f82a215b91416 |