# **Configuring SearchBlox**
Before using Google Site Connector, install SearchBlox successfully, then create a **Custom Collection**.
# **Configuring API for Google Site**
**Steps to create client_secret.json and configure Google Site**
Go to [https://console.developers.google.com/](🔗).
Log in with the account username and password.
Select a project if it already exists, or create a new project.
To create a new project, you will be asked to fill in the project name and agree to terms of service.
Next, click on the Products and Services list (menu) near Google APIs logo on left side.
Choose API Manager and then click on credentials on the left side menu.
In the resulting right pane, click on Create Credentials and select 'OAuth client ID' from the list.
Configure the consent screen then choose the application type.
Click on 'Configure consent screen' above the application type options.
In the landing OAuth consent screen, the email ID field is chosen by default. Fill in the product name field and click on Save. Other fields in this page are optional. 11.Now choose “Other Application”
Download Json and rename it to client_secret.json
Place it in the folder where the exe file is available
# Configuring Google Site Connector
All the files related to the connector should be available in the same folder that is, all files should be extracted into the same folder.
Create a data folder on your drive where the files would be temporarily stored and mention in yml files. Contact [[email protected]](🔗) to request the download link for SearchBlox Google Site connector. In Windows, the connector would be installed in the _C drive_.
## **Steps to Configure and Run the Google Site Connector**
Download the SearchBlox Google Site connector. Extract the downloaded zip to a folder.
Unzip the archive under *C:\*
Configure the googlesites.yml file which includes Google Site properties and SearchBlox properties as listed here:
|Column Title||Column Title|
|api-key||SearchBlox API Key|
|data-directory||Data Folder where the data needs to be stored. Make sure it has write permission.|
|colname||The name of the custom collection in SearchBlox.|
|exclude-formats||File formats to exclude.|
|exclude-google-mime||Google mime types to be excluded|
|fetch-interval||Fetch interval between each hits (in seconds)|
|exclude-size||size of file that can be excluded in index|
|siteName||site name specified in google sites|
The content details of googlesites.yml are provided here:
Start running the googlesites.exe file for Windows
First time you would get a URL in the console, copy that URL and post it in browser
Allow SearchBlox to access your account
Copy the string generated and paste it in console
Once giving enter the files would get indexed
Please note that this is a one time process, running the connector next time the crawler will start automatically.