Skip to content

About

A lightweight Python-based URL validator that checks URL formats, protocols, and hostnames through an interactive command-line interface.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Python URL Validator

A lightweight Python-based URL validator that checks URL formats, protocols, and hostnames through an interactive command-line interface.

Features

  • 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.

Technologies Used

  • Python
  • urllib
  • Colorama

Project Structure

python-url-validator/
│
├── app.py
├── requirements.txt
├── README.md
└── .gitignore

Installation

  1. Clone this repository:
git clone https://github.com/pradipta-web/python-url-validator.git
  1. Navigate to the project directory:
cd python-url-validator
  1. Create a virtual environment:
py -m venv venv
  1. Install dependencies:
.\venv\Scripts\python.exe -m pip install -r requirements.txt

Usage

Run the application:

.\venv\Scripts\python.exe app.py

Enter a URL to check whether its format is valid.

Type exit to close the application.

Example

Enter URL (or type 'exit' to quit):
> https://google.com

Status: VALID
Message: URL format is valid.

Author

Kinervaaa

GitHub: https://github.com/pradipta-web

About

A lightweight Python-based URL validator that checks URL formats, protocols, and hostnames through an interactive command-line interface.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages