Coders Packet

URL shortener Using Python

By Debanjan Jash

Using this python code we can make a short URL by using its long URL. It's is very easy to handle a short URL instead of long URL.

1) First of all we need to install required module like Pyshorteners. 

          pip install pyshorteners

2) Then import the pyshorteners.

          import pyshorteners

3) Now we take input from the user.

          url= input("Enter the URL:")

4) Now we initialize the pyshortener library's class object to start shortening the URL.

          s=pyshorteners.Shortener()

5) Now, after initialized the library, we can start to shortening of URLs. And now we can get a short URL from a long URL.

URL shortener Using Python 

 

URL shortener Using Python

 

URL shortener Using Python

 

URL shortener Using Python

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Debanjan Jash (debanjan22)

Download packets of source code on Coders Packet