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.
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/*****
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With