Answers for "url shortner in python"

3

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)
Posted by: Guest on June-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language