Skip to content

Commit 330fbed

Browse files
committed
Shorten Link Utility Added
1 parent 65a3e0f commit 330fbed

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

ShortenLinks/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Shorten Links
2+
3+
## Description
4+
This snippet of code will compress your link length and make it too short upto great extent.
5+
6+
## Requirements
7+
8+
`$ pip install pyshorteners`
9+
10+
## Steps To Execution
11+
- Fork this repo and navigate to ShortenLinks folder
12+
- Run this code.py `$ python code.py`
13+
- Yay !! you got your shorten link as output
14+

ShortenLinks/code.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""
2+
Example input : https://github.com/Dhrumil-Zion/Python-project-Scripts
3+
"""
4+
5+
import pyshorteners
6+
7+
link = input("\nEnter your link : ")
8+
9+
short = pyshorteners.Shortener()
10+
x = short.tinyurl.short(link)
11+
12+
print("\nShorted link is : "+x)

ShortenLinks/output.png

47.5 KB
Loading

0 commit comments

Comments
 (0)