Skip to content

Commit 280ec0c

Browse files
committed
feat: Added url sortener with the help of pyshorteners
1 parent 4dce091 commit 280ec0c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

URL Sortener/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pyshorteners
2+
3+
4+
def shorten_url(url):
5+
return pyshorteners.Shortener().tinyurl.short(url)
6+
7+
8+
url = input("Please enter URL: ")
9+
print("URL after Shortening : ", shorten_url(url))

0 commit comments

Comments
 (0)