how to make a url shortener in python

Solutions on MaxInterview for how to make a url shortener in python by the best coders in the world

showing results for - "how to make a url shortener in python"
Martin
01 Jun 2016
1#How to make a URL Shortener in Python
2
3####You need to install " pip install pyshorteners " in the terminal / powershell
4
5## Code:
6
7import pyshorteners
8link = input("Enter link :  ")
9shortener = pyshorteners.Shortener()
10x=shortener.tinyurl.short(link)
11print(x)