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.1.tar.gz
(25.6 kB
view hashes)
Built Distribution
Close
Hashes for clean_links-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e01a5057b8da7933de347822e4c731e9978aeb55e861499965893ecfbc9710f |
|
MD5 | f88f155a9b031ad2171115b75f5aaf1a |
|
BLAKE2b-256 | 5ccaa5f961bcdd387327ada64337a0f5b566ca4c936bbf2f8754e2a2c719c26a |