Giter Club home page Giter Club logo

googlesearchapi's Introduction

Bulk Indexing with Google Indexing API

This script streamlines the process of indexing multiple pages of your website on Google, eliminating the need for individual URL submissions through the Search Console interface.

Require

Use several Python libraries such as google-auth, google-auth-oauthlib, google-auth-httplib2, requests, and json. First, you need to install these libraries if you haven't already. You can do this using pip:

pip install google-auth google-auth-oauthlib google-auth-httplib2 requests

Begin by setting up access to the Indexing API on the Google Cloud Platform. Follow these instructions to get started:

Google Indexing API Setup Guide

After gaining access, download the public/private key pair JSON file, named "service_account.json". This file contains your essential credentials.

Prepare a file named urls.txt and list all URLs you wish to have crawled/indexed.

Site Ownership Verification in Search Console for URL Indexing

Ensure you have verified ownership of your website to submit URLs for indexing.

Locate your service account email address (found in "service_account.json" under client_email) and add it as a delegated owner of your web property in Search Console. This email is also visible in the Service Accounts section of the Developer Console and follows a format like "my-service-account@test-project-42.google.com.iam.gserviceaccount.com".

To verify ownership:

  1. Visit Google Webmaster Central.
  2. Select your verified property.
  3. Navigate to 'Add an owner'.
  4. Enter your service account email as an owner of the property.

Indexing Quotas

Maximum of 100 URLs per batch request. Limit of 200 URLs per day.

googlesearchapi's People

Contributors

42point avatar

Watchers

 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.