https://github.com/jamesbechet/get-google-crawl-errors
A JavaScript library that allows you to get a list of urls and their error codes from the Google's webmasters crawl errors tool.
https://github.com/jamesbechet/get-google-crawl-errors
404 google google-webmaster javascript-library redirect seo seo-optimization sitemap
Last synced: 5 months ago
JSON representation
A JavaScript library that allows you to get a list of urls and their error codes from the Google's webmasters crawl errors tool.
- Host: GitHub
- URL: https://github.com/jamesbechet/get-google-crawl-errors
- Owner: jamesbechet
- Created: 2017-11-28T21:04:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T19:00:00.000Z (over 3 years ago)
- Last Synced: 2025-09-22T14:42:34.292Z (9 months ago)
- Topics: 404, google, google-webmaster, javascript-library, redirect, seo, seo-optimization, sitemap
- Language: JavaScript
- Size: 38.1 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Get Google Crawl Errors [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url]
[travis-image]: https://app.travis-ci.com/jamesbechet/get-google-crawl-errors.svg?branch=master
[travis-url]: https://app.travis-ci.com/github/jamesbechet/get-google-crawl-errors
[npm-image]: https://img.shields.io/npm/v/get-google-crawl-errors.svg
[npm-url]: https://npmjs.org/package/get-google-crawl-errors
[downloads-image]: https://img.shields.io/npm/dm/get-google-crawl-errors.svg
[downloads-url]: https://npmjs.org/package/get-google-crawl-errors
## A JavaScript library that allows you to get a list of urls and their error codes from the Google's webmasters crawl errors tool.
### Why?
This tool is useful if you're trying to fix 404s errors on your website using Google Search Console Tools.
Instead of individually fixing each url, you could automate your redirect system using this script.
Navigate to the [Google Search Console Tools](https://search.google.com/u/1/search-console/index) -> Indexing -> Pages -> Choose "Soft 404" for example -> then run (copy/paste) the script.
### Install
```bash
npm install --save get-google-crawl-errors
```
### Usage
```js
var getGoogleCrawlErrors = require('get-google-crawl-errors')
/**
* A list of error urls.
* @type {String[]}
*/
var errorUrls = getGoogleCrawlErrors.get()
```
### License
MIT. Copyright (C) [James Bechet](https://jamesbechet.github.io/jamesbechet/)