This Python script is a simple URL shortener that utilizes the pyshorteners library to generate shortened URLs using the TinyURL service.
- Python 3.x
- pyshorteners library
Install the required library using the following command:
Run the script:
python url_shortener.py Enter the URL you want to shorten when prompted.
The script will provide you with the shortened URL.
You can customize the script to use other URL shortening services supported by pyshorteners by modifying the s.tinyurl.short() line in the script.
Feel free to explore and modify the script to suit your needs.
pip install pyshorteners
Happy shortening!