PHP Cli library to clean up automatically all solved errors in Google Search Console Crawl Errors. It makes use of Official Google PHP API Client
Install Composer dependencies
composer install
Create a Google Service Account following instructions provided by Google
Replace /path/to/service-account.json
with the path to the downloaded file
Authorize the Google Service Account to access your WMT info (add the email as a user with full access to your Search Console)
php -f cli.php http://www.example.com/ errorType device
* Note the / at the end of the domain
- authPermissions
- flashContent
- manyToOneRedirect
- notFollowed
- notFound
- other
- roboted
- serverError
- soft404 (use with caution as it only check 200 HTTP status to mark the problem as solved)
- mobile
- smartphoneOnly
- web