A lightweight Python-based URL validator that checks URL formats, protocols, and hostnames through an interactive command-line interface.
- Validate URL formats.
- Check HTTP and HTTPS protocols.
- Validate hostname and domain presence.
- Detect invalid URL formats.
- Display validation results.
- Support multiple URL checks.
- Interactive command-line interface.
- Python
- urllib
- Colorama
python-url-validator/
│
├── app.py
├── requirements.txt
├── README.md
└── .gitignore
- Clone this repository:
git clone https://github.com/pradipta-web/python-url-validator.git- Navigate to the project directory:
cd python-url-validator- Create a virtual environment:
py -m venv venv- Install dependencies:
.\venv\Scripts\python.exe -m pip install -r requirements.txtRun the application:
.\venv\Scripts\python.exe app.pyEnter a URL to check whether its format is valid.
Type exit to close the application.
Enter URL (or type 'exit' to quit):
> https://google.com
Status: VALID
Message: URL format is valid.
Kinervaaa
GitHub: https://github.com/pradipta-web