Reputation: 51
I want to make the simplest possible Url shortener in Python.
like this:
link = input("Type your link:")
#print output
I can use for this Python libraries if needed.
I want the code to be as simple as possible - 10 lines maximum.
The code must be efficient.
Upvotes: 3
Views: 392
Reputation: 64
The simplest possible Url shortener in Python:
import pyshorteners
#link = 'https://yourwebsitehere.com/'
link = input("Type your link")
print(pyshorteners.Shortener().clckru.short(link))
#output: https://clck.ru/*****
Upvotes: 4