A package to submit Bulk URLs for Google Indexing using an Excel file
Project description
Around With Us Projects - Google Bulk Url 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-bulk-url-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
- Install the Package
pip install google-bulk-url-indexing
- 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.
- Create an Excel file (
- Connect Your JSON File
- Obtain a service account JSON file from Google Cloud Console and provide the complete path to it in your script.
- Run the Code
- Execute the script to start submitting your URLs for indexing.
Project Structure
google-bulk-url-indexing/
├── indexing/
│ ├── __init__.py
│ ├── main.py
├── setup.py
├── README.md
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file google_url_bulk_indexing-0.0.2.tar.gz
.
File metadata
- Download URL: google_url_bulk_indexing-0.0.2.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63ed032cc58d92d435e4562d2b43936cd8308dd775d522c7b32c2800e3be6376 |
|
MD5 | cb4cc298c58f9bba65b9bb6eb6a3c051 |
|
BLAKE2b-256 | 89f5b0bbdbe270075f2360ac8fdb2b6ef9d8f517406c3c5d4985044799dc0164 |
File details
Details for the file google_url_bulk_indexing-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: google_url_bulk_indexing-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8ad09e4831d25f2089a262fbed9bf8936f222e9ddf8c0705ef05406bd147a0c |
|
MD5 | fcaa4643b5461664bb1ff037ffd58919 |
|
BLAKE2b-256 | de4aba954a466ef0625c294de33299b56a22a9db694498c8ec28974ae56e78ed |