import pyshorteners
from pyperclip import copy
from pystyle import Write, Colors
Write.Print("Welcome To Py URL Shortener\n", Colors.baby_blue, interval=0.0025)
while True:
url = Write.Input("Enter URL: ", Colors.dap_blue, interval=0.025)
shortener = pyshorteners.Shortener()
short_url = shortener.tinyurl.short(url)
copy( short_url)
Write.Print(f"Shortened URL: {short_url}\nCopied short url to clipboard\n", Colors.dap_blue, interval=0.025)
if url in ("exit", "quit", "q", "e"):
Write.Print("Exiting...", Colors.baby_blue, interval=0.025)
break
-
Notifications
You must be signed in to change notification settings - Fork 0
License
SpiralDevs/Python-URL-Shortener
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published