A simple Django web application for URL shortening using Bitly.(I use Django framework to make it attractive and a little bit challenging. if it's hard to understand, you can find simple python code in main.py file check that first.)
- Shorten long URLs using the Bitly API
- Provides a user-friendly interface for URL shortening
Before running the application, make sure you have the following installed:
- Python
- Django
- pyshorteners
- Install the required dependencies: pip install -r requirements.txt
- Run the Django development server: python manage.py runserver
- Visit http://127.0.0.1:8000/ in your web browser.
- Enter the long URL in the provided input field.
- Click the "Shorten URL" button.
- The application will use the Bitly API to generate a short URL.
- The short URL will be displayed on the page.
Replace the Bitly API key in the code with your own API key. You can obtain one by signing up on the Bitly website.