NanoLinks is a simple URL shortener built with Python and Flask. It allows users to shorten long URLs and provides a shortened URL that redirects to the original link.
- Shortens long URLs into shorter, manageable links
- Simple and user-friendly interface
- Python 3.x
- Flask
-
Clone the Repository
git clone https://github.com/yourusername/shortsnap.git cd shortsnap
-
Create a Virtual Environment
python -m venv venv
-
Activate the Virtual Environment
-
On Windows:
venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
-
-
Install Dependencies
pip install Flask
-
Run the Flask Application
python main.py
The server will start, and you can access the application at
http://localhost:5000
. -
Shorten a URL
- Open your browser and go to
http://localhost:5000
. - Enter the long URL in the form and click "Shorten".
- Open your browser and go to
-
Access Shortened URL
- The application will display a shortened URL. Click on it or copy-paste it into your browser to be redirected to the original URL.
main.py
: The main Flask application file that handles URL shortening and redirection.templates/index.html
: The HTML template for the user interface.
This project is licensed under the GNU General Public License (GPL) v3.0. See the LICENSE file for details.
If you'd like to contribute to this project, please fork the repository and submit a pull request. For any issues or feature requests, please open an issue on the GitHub repository.
- Flask for the web framework
- Python for the programming language