For HTML and CSS files.
Based on 2 APIs:
Python 3 Requests: HTTP for Humans™
You can install requests using pip:
python 3 -m pip install requests
If you don't have pip installed, you can get it here.
- Clone this repo
git clone https://github.com/holbertonschool/W3C-Validator.git
- Run shell script (see example in usage section below)
Simple file:
./w3c_validator.py index.html
Multiple files:
./w3c_validator.py index.html header.html styles/common.css
All errors are printed in STDERR
; Exit status = # of errors (0 on success)
The Nu Html Checker (v.Nu) Nu Html Checker Checker output format