Skip to main content

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

Project description

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.

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.

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-bulk-url-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

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.

Issues

If you encounter any issues, please open an issue on the repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_url_bulk_indexing-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

google_url_bulk_indexing-1.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file google_url_bulk_indexing-1.0.1.tar.gz.

File metadata

File hashes

Hashes for google_url_bulk_indexing-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dbb47d6debbb38c4fcd5ae942f55178ce59a7bd700ed40b2d93d4308873da7cd
MD5 cba65a8daa9d5bf3a28b40d8d6aa9cab
BLAKE2b-256 bbb8ccc944307d5a3f496bd1e9ee908c6a6bca9d98f1bd96b10a9063c19c1f28

See more details on using hashes here.

File details

Details for the file google_url_bulk_indexing-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for google_url_bulk_indexing-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61c6a74c21f52b99717f95be990b6e8a943ae4d20345d8cabcffbc7ba9be3304
MD5 05eaff3431ecb705a279804bc95fe552
BLAKE2b-256 2bb46148aa3a37ef400d362782e93ed58e4a88407d6c0f296e93e51391f45215

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page