URL SHORTENER USING PYTHON
Source Code:-
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 | # Required Module:- pip install pyshortenersimport pyshorteners# Enter your website URL here# apply shorting methodshortener = pyshorteners.Shortener()# short the URLshorted_url = shortener.tinyurl.short(url)# print the shorted URLprint(shorted_url)#### OUTPUT:- |
# Required Module:- pip install pyshorteners import pyshorteners # Enter your website URL here url = "https://pythonwithshubham2021.blogspot.com/" # apply shorting method shortener = pyshorteners.Shortener() # short the URL shorted_url = shortener.tinyurl.short(url) # print the shorted URL print(shorted_url) #### OUTPUT:- # => https://tinyurl.com/ye9hbuwy
0 Comments