https://github.com/noook/weblint
https://github.com/noook/weblint
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noook/weblint
- Owner: noook
- Created: 2019-01-21T19:03:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T02:12:24.000Z (over 3 years ago)
- Last Synced: 2025-10-06T20:02:18.087Z (8 months ago)
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Weblinter
## Setting up — Dev
Create a virtual environment with `python3 -m venv venv`, then source it with `source venv/bin/activate`.
Run `pip install -r requirements.txt` to install the required dependencies.
Code :wink:
## Running the script
Install the required dependencies with `pip install -r requirements.txt` or get into the venv, then run the script as follows.
Run `./main.py [urls]` or `python3 main.py [urls]` with at least one URL and let the script run.
Example:
```sh
$ ./main.py https://nook.sh https://google.com
> 2019-01-21 22:08:26 [https://nook.sh] Response time : 23.51 ms
> 2019-01-21 22:08:26 [https://google.com] Response time : 18.056 ms
```
When running the script with no flag, all the tests will be run. If you want to run only a bunch of specific tests, add the flags when you run the script.
You can have the list of available tests by running the script with the `-h` or `--help` flag.
```sh
$ ./main.py https://google.com https://leetchi.com --img-alt --response-time
> 2019-01-30 17:41:19 [https://google.com] Response time : 43.71 ms
> 2019-01-30 17:41:19 [https://leetchi.com] Response time : 34.98 ms
> 2019-01-30 17:41:23 [https://leetchi.com] "alt" cannot be empty
```