Coder Social home page Coder Social logo

axeltahmid / google-indexing-script Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goenning/google-indexing-script

0.0 0.0 0.0 56 KB

Script to get your site indexed on Google in less than 48 hours

Home Page: https://seogets.com/blog/google-indexing-script

License: MIT License

JavaScript 100.00%

google-indexing-script's Introduction

Google Indexing Script

Use this script to get your entire site indexed on Google in less than 48 hours. No tricks, no hacks, just a simple script and a Google API.

You can read more about the motivation behind it and how it works on this blog post https://seogets.com/blog/google-indexing-script

Important

  1. Indexing != Ranking. This will not help your content/page rank on Google, it'll just let Google know about the existence of all your pages.
  2. This script uses Google Indexing API. While there is no absolute guarantee that every page will be indexed, recent tests conducted in December 2023 have shown a notably high success rate.

Requirements

Preparation

  1. Download or clone this repository
  2. Follow this guide from Google. By the end of it, you should have a project on Google Cloud with the Indexing API enabled, a service account with the Owner permission on your sites.
  3. Make sure you enable both Google Search Console API and Web Search Indexing API on your Google Project โžค API Services โžค Enabled API & Services.
  4. Download the JSON file with the credentials of the service account and save it in the same folder as the script. The file should be named service_account.json

Usage

  1. Open a terminal and navigate to the folder where you cloned repository
  2. Run npm install to install the dependencies
  3. Run npm run index <domain> to index all the pages of your site. Replace <domain> with your site domain. For example, if your site is https://seogets.com, you should run node run index seogets.com

Here's an example of what you should expect:

Important Notes:

  • Your site must have 1 or more sitemaps submitted to Google Search Console. Otherwise, the script will not be able to find the pages to index.
  • You can run the script as many times as you want. It will only index the pages that are not already indexed.
  • Sites with a large number of pages might take a while to index, be patient.

๐Ÿ“„ License

MIT License

๐Ÿ’– Sponsor

This project is sponsored by SEO Gets

google-indexing-script's People

Contributors

goenning avatar anjum48 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.