26
loading...
This website collects cookies to deliver better user experience
pip install pyshortners
import pyshorteners
URL = "Paste your link here"
short_URL = pyshorteners.Shortener()
result = short_URL.tinyurl.short(URL)
print("Shortened URL: " + result)
import pyshorteners # Imported Pyshorteners
URL = "Paste your link here." # Making a variable, whichj will store the link.
short_URL = pyshorteners.Shortener() # Calling the function to do the work.
result = short_URL.tinyurl.short(URL) # Telling the function the location of the link.
print("Shortened URL: " + result) # Printing the output.