google-indexAPI-python
is a Python-based tool for automating the submission of URLs to Google's Indexing API. This project simplifies the process of notifying Google about updates to your website, ensuring that your content is indexed quickly and efficiently.
Steps needed to be performed
- Python (duh)
- Custom Search Engine ID
- API key for Google Custom Search API
- Service Account JSON Key for Google Indexing API
Refer to these resources for setup instructions:
To set up and run the project, follow these steps:
-
Clone the Repository
Clone the repository to your local machine using Git:
git clone https://github.com/koutsosg/google-indexAPI-python.git cd google-indexAPI-python
-
Install Poetry
Ensure Poetry is installed on your system. You can install Poetry using the following command:
curl -sSL https://install.python-poetry.org | python3 -
Alternatively, follow the Poetry installation instructions
-
Install Dependencies Use Poetry to install the project dependencies:
poetry install
This command creates a virtual environment and installs all required dependencies.
-
Add Configuration Files
You need to provide the following files in the root directory of the project:
apidetails.json
: The JSON key file for authenticating with the Google Indexing API.my_data.csv
: The CSV file containing the URLs to be processed. Ensure it has a column named "URL".
-
Activate the Poetry Shell
Activate the virtual environment created by Poetry:
poetry shell
-
Run the Script
Execute the script to start processing URLs:
poetry run start
Guidelines for contributing to the project.
This project is licensed under the Custom License - see the LICENSE file for details.
This is the initial release of the google-indexAPI-python
project, featuring the executable version without GUI.
Included in this release:
indexing.exe
(Windows) orindexing
(macOS/Linux): The main executable for processing URLs.README.md
: Instructions for using the executable.
Instructions:
- Download the ZIP file from the releases page.
- Extract the contents folder.
- You need to provide the following files in the same folder:
apidetails.json
: The JSON key file for authenticating with the Google Indexing API.my_data.csv
: The CSV file containing the URLs to be processed. Ensure it has a column named "URL".
- Run the executable (
indexing.exe
orindexing
). - Check the Logs Folder for results
- The executable generates log files in a directory named logs in the same location where the executable was run.