Coders Packet

URL Shortener Using Python

By Mayank Kumar

Creating a URL shortener using Python. In this project you can take any URL from the internet and create a short version of it.

Packet Information:

To create a URL shortener first we have to install 2 Python libraries- py-shorteners, and py-per clip Python.

First, I imported the py-shorteners libraries in Python.

Then I asked the user to provide the URL.

I have created a function and the pyshorteners object is created in that function.

Using the tinyurl API I have created the short url.

Finally, I have called the function.


Use of URL Shorteners:

URL Shorteners allows user to check the activities on that particular shortened URL.

It makes the task easier for the user on social media platforms to share shortened URL which is easily readable.

CODE:

OUTPUT:

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Mayank Kumar (Mayank10)

Download packets of source code on Coders Packet