https://github.com/a3ro-dev/url_shortener
Simple console application that allows you to shorten long URLs using the TinyURL link shortener and expand shortened links generated by TinyURL.
https://github.com/a3ro-dev/url_shortener
link-shortener python python3 tinyurl tinyurl-api
Last synced: 12 months ago
JSON representation
Simple console application that allows you to shorten long URLs using the TinyURL link shortener and expand shortened links generated by TinyURL.
- Host: GitHub
- URL: https://github.com/a3ro-dev/url_shortener
- Owner: a3ro-dev
- Created: 2023-01-09T14:45:12.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-09T14:48:53.000Z (about 3 years ago)
- Last Synced: 2025-01-02T01:19:22.460Z (about 1 year ago)
- Topics: link-shortener, python, python3, tinyurl, tinyurl-api
- Language: Python
- Homepage:
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Link Shortener Console
This is a simple console application that allows you to shorten long URLs using the TinyURL link shortener and expand shortened links generated by TinyURL.
## Requirements
- Python 3.5 or higher
- [pyshorteners](https://pypi.org/project/pyshorteners/) library
## Usage
1. Clone the repository or download the code.
2. Install the required libraries using `pip install -r requirements.txt`.
3. Run the application using `python shortner.py`.
4. Follow the prompts to either shorten a long URL or expand a shortened URL.
## Features
- Uses the TinyURL link shortener to generate shortened links.
- Allows you to expand shortened links generated by TinyURL.
- Provides user-friendly error messages in case of any issues.
## Note
- Make sure you have an active internet connection for the application to work properly.
- If the TinyURL servers are down, the application may not work as expected.
- The application will exit if you press `CTRL+C`.