1.1.5 • Published 4 years ago
gsping v1.1.5
gsping
One small tool to crawl website and get a simple performance report in the console.
Small crawling tool for checking web performance
install
npm install -g gsping
Parameters
- -v show current running version.
- -u to specify a url to test. it could be an array to provide a list of urls, in this case, everytime will get a batch count urls to crawl
- -t to indicate how many times.
- -m to use mobile user agent.
- --batch to set batch crawling count.
- --existkey to check. This is keyword to check if it exists in response.
- --regexp when set --existkey, use this flag to indicate if it is a regular expression.
- --interval in ms. To set crawling interval time in miliseconds.
- --ua to indicate what ua you want to use. valid values: chrome(default), googlebot.
- --detail Show the result data for every crawling.
Using config
gsping --config ./gsping.config.json
example for json format.
{
"isMobile": false,
"url": "https://www.google.com",
"times": 1,
"method": "GET",
"ua": "googlebot",
"existkey": "content=\"noodp\"",
"regexp": true
}
Usage
example crawl google for 5 times.
gsping -u https://www.google.com -t 5
example crawl google for 10 times, batch count 3 and interval 3s
gsping -u https://www.google.com -t 10 --batch 3 --interval 3000
example crawl google with google mobile(-m) bot user agent
gsping -u https://www.google.com -t 5 -m --ua googlebot
example checking some string existing in response
gsping -u https://www.google.com -t 10 --existkey itemtype=\"http://schema.org/WebPage\" --detail
1.1.5
4 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.22
6 years ago
1.0.21
6 years ago
1.0.20
6 years ago
1.0.19
6 years ago
1.0.18
6 years ago
1.0.17
6 years ago
1.0.16
6 years ago
1.0.15
6 years ago
1.0.14
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago