'''
Install pyshorteners for URL Shortner by python project by via the following command:
pip install pyshorteners
'''
import pyshorteners
link = input("")
shorteners = pyshorteners.Shortener()
shortlink = shorteners.tinyurl.short(link)
print(shortlink)
how to make a url shortener in python
#How to make a URL Shortener in Python
####You need to install " pip install pyshorteners " in the terminal / powershell
## Code:
import pyshorteners
link = input("Enter link : ")
shortener = pyshorteners.Shortener()
x=shortener.tinyurl.short(link)
print(x)