This is a simple URL shortener app built with Python and Streamlit. The app allows users to input any URL and get a shortened URL using the TinyURL service provided by the PyShorteners library.
To run this app on your local machine, you need to have Python 3 and pip installed. Then, follow these steps:
- Clone this repository:
git clone https://github.com/your-username/your-repo.git
- Navigate to the project directory:
cd your-repo
- Install the required libraries:
pip install -r requirements.txt
- Run the app:
streamlit run app.py
After running the app, you should see a user interface with a text input and a button. To shorten a URL, simply paste the URL into the text input and click the button. The app will use the TinyURL service to generate a shortened URL and display it on the screen.
If the input URL is invalid or there is an error while shortening the URL, the app will display an error message.
You can easily deploy this app on a web server or a cloud platform like Heroku or Streamlit Sharing. See the Streamlit documentation for more information on deployment.
Streamlit Link : https://deepankarvarma-url-shortner-using-python-app-87bfzi.streamlit.app/
This app uses the following open-source libraries:
- Streamlit
- PyShorteners