9.8.1 • Published 2 years ago

adnan v9.8.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Google index CLI tool

Test codecov

This is CLI tool for retrieving data from Google search pages.

Functionality available:

  • Get count of indexed pages for you sites google-index count

Usage

As global package

npm i -g google-index

google-index

You must specify the command to run

google-index <command> [options]

Commands:
  google-index count  Count amount of pages in Google index

Options:
  --help     Show help                                    [boolean]
  --version  Show version number                          [boolean]

As NPX script

npx google-index --version

Programmatic API

const { count } = require('google-index');

(async () => {
    console.log(await count(['github.com']));
})();

// [ { site: 'github.com', count: 66700 } ]

Available commands

1. Get count of pages in Google index

Accepts --sites option with JSON array of sites' domains (without protocol https://).

Returns array parsed data.

$ google-index count --sites='["example.com","example2.com"]'
[
  { site: 'example.com', count: 8080 },
  { site: 'example2.com', count: 1210 }
]

1.1 Running count command under root user

count command accepts --under-root=true\fales option.

Passing true will disable Chromium sanboxing during pages parsing. Using this option is less secure so use it at your own risk.

9.8.1

2 years ago

9.7.9

2 years ago

9.7.8

2 years ago

9.7.7

2 years ago

9.4.7

2 years ago

9.3.7

2 years ago

8.3.7

2 years ago

6.3.7

2 years ago

5.3.7

2 years ago

4.3.7

2 years ago

3.3.7

2 years ago

2.3.7

2 years ago

1.3.7

2 years ago

1.2.7

2 years ago