New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

gsping

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gsping

gsping ====================

latest
Source
npmnpm
Version
1.1.5
Version published
Maintainers
1
Created
Source

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

Usage animation

Keywords

crawl

FAQs

Package last updated on 20 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts