Python - Projects
URL Shortener Mini Project in Python
URL Shortner - Python Library
A stable Python 3.6+ library for interacting with popular URL shortening services.Licensed under GPLv3+ pyshorteners.readthedocs.io+8pypi.org+8pydigger.com+8.
No dependencies beyond the standard library, except for
requests
(handled internally). # pip install pyshorteners
# pip install pyperclip
import pyshorteners
url = input('Enter the url: ')
def shortenurl(url):
s = pyshorteners.Shortener()
print(s.tinyurl.short(url))
shortenurl(url)
If you're using this library, version 1.0.1 is your go-to choice.
For longevity or advanced features, consider either maintaining
your fork or switching to a more active alternative.
Need help migrating or finding alternatives? Just let me know!