https://github.com/rodion-arr/google-index
A simple CLI tool which will count yours site pages in Google index
https://github.com/rodion-arr/google-index
cli google-indexing googlesearch parser
Last synced: 5 months ago
JSON representation
A simple CLI tool which will count yours site pages in Google index
- Host: GitHub
- URL: https://github.com/rodion-arr/google-index
- Owner: rodion-arr
- License: mit
- Created: 2020-07-22T15:55:21.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T03:04:21.000Z (over 2 years ago)
- Last Synced: 2025-10-22T09:53:18.766Z (8 months ago)
- Topics: cli, google-indexing, googlesearch, parser
- Language: JavaScript
- Homepage:
- Size: 38.1 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Google index CLI tool

[](https://codecov.io/gh/rodion-arr/google-index)

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
```bash
npm i -g google-index
google-index
You must specify the command to run
google-index [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
```bash
npx google-index --version
```
### Programmatic API
```javascript
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.
```bash
$ 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.