Answers for "link shortener"

9

link shortener

## run pip install pyshorteners in terminal first

import pyshorteners
link_input  = input('What link would you like to shorten?\n')
link = link_input
shortener = pyshorteners.Shortener()
url = shortener.tinyurl.short(link)
print(url)
Posted by: Guest on March-19-2021

Python Answers by Framework

Browse Popular Code Answers by Language