A simple Python URL Shortener that converts long URLs into short, shareable links using the TinyURL service.
This project allows users to shorten long URLs into compact, shareable links. It validates the entered URL, generates a shortened link using TinyURL, and automatically opens the shortened URL in the default web browser.
- 🔗 Shorten any valid URL
- ✅ URL validation
- 🌐 Automatically opens the shortened URL
- ⚡ Fast and lightweight
- 💻 Command-line application
This project requires the following Python packages:
- pyshorteners
- validators
Install the required packages using pip:
pip install pyshorteners validatorsgit clone https://github.com/ShravanDalavi/Simple-Python-Mini-Projects.gitcd "Simple-Python-Mini-Projects/URL Shortener"python url_shortener.pyEnter Long URL:
https://github.com/ShravanDalavi/Simple-Python-Mini-Projects
✅ URL Shortened Successfully!
Short URL:
https://tinyurl.com/2ykbty3a