https://github.com/piedweb/google-spreadsheet-seo-scraper
Open source excel or libreoffice and PHP SEO google position SERP checker to track and follow a few website's keywords positions https://dev.piedweb.com
https://github.com/piedweb/google-spreadsheet-seo-scraper
Last synced: about 1 year ago
JSON representation
Open source excel or libreoffice and PHP SEO google position SERP checker to track and follow a few website's keywords positions https://dev.piedweb.com
- Host: GitHub
- URL: https://github.com/piedweb/google-spreadsheet-seo-scraper
- Owner: PiedWeb
- License: mit
- Archived: true
- Created: 2019-10-27T09:52:33.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T07:52:04.000Z (over 3 years ago)
- Last Synced: 2025-02-16T22:33:01.423Z (over 1 year ago)
- Language: PHP
- Size: 84 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Spreadsheet Seo Scraper
[](https://github.com/PiedWeb/PiedWeb/tags)
[](LICENSE)
[](https://github.com/PiedWeb/PiedWeb/actions)
[](https://scrutinizer-ci.com/g/PiedWeb/PiedWeb)
[](https://codecov.io/gh/PiedWeb/PiedWeb/branch/main)
[](https://shepherd.dev/github/PiedWeb/PiedWeb)
[](https://packagist.org/packages/piedweb/google-spreadsheet-seo-scraper)
Open source excel/libreoffice and PHP SEO google position SERP checker to track and follow a few website's keywords positions.
Homepage : https://piedweb.com/seo/serp
## Requirements
**PHP**, **CURL**, **composer**, **unoconv** and **libreoffice**
## Install
Via [Packagist](https://packagist.org/packages/piedweb/google-spreadsheet-seo-scraper)
```bash
$ # create the folder where you will install the soft
$ mkdir gs3 && cd gs3
$ # install the lib via composer
$ composer require piedweb/google-spreadsheet-seo-scraper
$ # create a link to the executable
$ ln -s vendor/piedweb/google-spreadsheet-seo-scraper/scrap.php console && chmod +x console
```
## Usage
```bash
$ gs3/console
--ods path/to/myfile.ods
--domain host.tld
```
### Facultative args
```bash
--proxy ip:port:username:pass (without proxy, you can check between 20 and 50 kw)
--cache /my/cache/folder/for/google/result (plain html)
--num-100 per default, the script check only the first result page.
Using it permit to check the 100st results if the domain was not found
--sleep 60 (default, time to wait in seconds between to request on google)
--quiet
```
### Examples
```
$ php scrap.php --ods "./kw.ods" --domain piedweb.com
```
```
$ php scrap.php --ods "./kw.ods" --domain piedweb.com,piedweb.fr
```
```
$ php scrap.php --ods "./kw.ods" --domain "you can set it directly in your ods file for each row"
```
## About `kw.ods`
> Seule les colonnes jusqu'à J sont importantes.
> Il est possible d'archiver autant de données que voulues dans les colonnes suivantes à condition de ne pas avoir
> deux colonnes portant le même nom.
> le doc peut être agrémenter de plusieurs feuilles à condition que la feuille par défaut reste la première.
> [Robin Delattre](https://www.robin-d.fr/)
Debugging `tendance` formula
```
=IF(J6="";""; // Si prev_pos est vide alors rien
IF (J6="FAILED";""; // Si prev_pos a échoué, alors rien
IF(H6="FAILED";""; // Si pos a échoué alors rien
IF(H6="";""; // Si pos est vide alors rien
IF(H6=-1;"x"; // si kw n'est pas position, alors x
IF (H6=J6;"=";
IF(H6