import pyshorteners
long_url = input("Enter the URL to shorten: ")
##TinyURL shortener service
type_tiny = pyshorteners.Shortener()
short_url = type_tiny.tinyurl.short(long_url)
print("The Shortened URL is: " + short_url)
#clcoding.com
Enter the URL to shorten: https://www.clcoding.com/p/python.html The Shortened URL is: https://tinyurl.com/2zb6hedv
0 Comments:
Post a Comment