Skip to main content

Tools for cleaning up links

Project description

clean-links

Release Build status codecov Commit activity License

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


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)

Uploaded Source

Built Distribution

clean_links-0.1.3-py3-none-any.whl (26.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page