Description
This is a simple web application built with Streamlit that allows users to shorten URLs using the TinyURL API. It provides a user-friendly interface to input a URL, validate it, and generate a shortened version. The app also handles errors gracefully to ensure a smooth user experience.
Features
· User-friendly interface
· URL validation before shortening
· Shorten URLs using TinyURL
· Error handling for invalid URLs
Requirements
· To run this application, you need to have Python installed along with the following dependencies:
pip install streamlit pyshorteners validators
How to Run
-
Clone this repository or download the script.
-
Install the required dependencies using the command above.
-
Run the Streamlit app:
streamlit run shortener_URL.py
-
Open the provided local URL in your browser.
Usage
-
Enter a valid URL in the input field.
-
Click the "Generate Shortened URL" button.
-
Copy and use the shortened URL displayed.
Notes
· Ensure you have an active internet connection as the app relies on TinyURL's API.
· The application validates URLs before shortening them to prevent errors.
Author
marour13