Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google-url-bulk-indexing

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-url-bulk-indexing

A package to submit Bulk URLs for Google Indexing using an Excel file

  • 1.0.7
  • PyPI
  • Socket score

Maintainers
1

Google Url Bulk Indexing

A Python package to submit URLs for Google Indexing using an Excel file. This package allows you to submit up to 200 URLs daily to Google Search Console for indexing, which can significantly benefit your SEO efforts.

Features

  • Authorizes credentials using a service account file.
  • Submits URLs for indexing or deletion.
  • Reads URLs from an Excel file.
  • Allows submission of up to 200 URLs daily. If you need to submit more, you can use multiple JSON keys or request access from Google Cloud Console.

Benefits

  • Fast Implementation: Quickly set up and start submitting URLs.
  • Excel Integration: Easily manage URLs in an Excel file.
  • Increased Limit: Submit up to 200 URLs daily to Google Search Console.

How to Make JSON Key

Learn how to create a JSON key for authentication with Google Cloud Console here.

  • Click Here (https://mscrabe.com/insights/automated-google-url-indexing-a/)

Excel Demo Download

Download a demo Excel file (format.xlsx) to get started quickly here.

Installation

To install this package, use pip:

pip install google-url-bulk-indexing

Usage

Command Line

After installing, you can use the package from the command line.

google-url-bulk-indexing

As a Module

You can also use it as a module in your Python code.

from indexing.main import authorize_credentials, submit_url, read_urls_from_excel

# Provide the path to the API key file
API_Path = "path/to/your/service_account.json"

# Provide the path to the Excel file
excel_file_path = "path/to/your/urls.xlsx"

# Authorize credentials
creds = authorize_credentials(API_Path)

# Specify the request type
requestType = "URL_UPDATED"  # or "URL_DELETED"

# Read URLs from Excel
urls_to_submit = read_urls_from_excel(excel_file_path)

# Submit each URL for indexing or deletion
for url in urls_to_submit:
    response_code = submit_url(creds, url, requestType)
    if response_code == 200:
        print(f"Successfully submitted: {url}")
    else:
        print(f"Error submitting {url}. Error Code: {response_code}")

Working Method

  1. Install the Package
    pip install google-url-bulk-indexing
    
  2. Prepare Your Excel File
    • Create an Excel file (urls.xlsx) with the URLs you want to submit, placing each URL in a separate cell in the first column.
  3. Connect Your JSON File
    • Obtain a service account JSON file from Google Cloud Console and provide the complete path to it in your script.
  4. Run the Code
    • Execute the script to start submitting your URLs for indexing.

Dependencies

  • google-auth
  • google-auth-oauthlib
  • requests
  • pandas
  • openpyxl

License

This project is licensed under the MIT License - see the LICENSE file for details.

Author

Around With Us- mscrabe@gmail.com

Acknowledgments

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are welcome.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc