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.2.tar.gz
(25.6 kB
view hashes)
Built Distribution
Close
Hashes for clean_links-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b49b51db944c50911aa92794de46abe9a714068f1f3274e891e56179c3dd7395 |
|
MD5 | 1f5cb5e3b45d91ca777e38ef8eade185 |
|
BLAKE2b-256 | 2e2e5e4c454938c1d685dde3a145b0d23bc9796db29ab7c7ee02e12ab6d3e1cf |