Skip to content

stringertheory/clean-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a725290 · Feb 1, 2024

History

37 Commits
Jan 29, 2024
Feb 1, 2024
Jan 31, 2024
Feb 1, 2024
Jan 29, 2024
Jan 29, 2024
Jan 29, 2024
Jan 31, 2024
Jan 29, 2024
Jan 29, 2024
Jan 31, 2024
Jan 31, 2024
Jan 29, 2024
Jan 31, 2024
Feb 1, 2024
Jan 29, 2024
Feb 1, 2024
Jan 30, 2024

Repository files navigation

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!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published