Google Drive
Ingest your files into Unstructured from Google Drive.
The requirements are as follows.
-
A Google Cloud service account and its related
credentials.json
key file or its contents in JSON format. Learn how. -
To ensure maximum compatibility across Unstructured service offerings, you should give the service account key information to Unstructured as a single-line string that contains the contents of the downloaded service account key file (and not the service account key file itself). To print this single-line string without line breaks, suitable for copying, you can run one of the following commands from your Terminal or Command Prompt. In this command, replace
<path-to-downloaded-key-file>
with the path to thecredentials.json
key file that you downloaded by following the preceding instructions.-
For macOS or Linux:
-
For Windows:
-
-
Give the service account’s email address access to the Google Drive folder. Learn more.
-
Note the folder ID. This is a part of the URL for your Google Drive folder represented in the following URL as
{folder_id}
:https://drive.google.com/drive/folders/{folder-id}
.
To create the source connector:
- On the sidebar, click Connectors.
- Click Sources.
- Cick New or Create Connector.
- Give the connector some unique Name.
- In the Provider area, click Google Drive.
- Click Continue.
- Follow the on-screen instructions to fill in the fields as described later on this page.
- Click Save and Test.
Fill in the following fields:
- Name (required): A unique name for this connector.
- Drive ID (required): The target folder’s ID.
- Extensions: A comma-separated list of any file extensions to be included in the ingestion process (such as
.jpg,.pdf
), if filtering is needed. The default is to include all files, if not otherwise specified. - Recursive: Check this box to also access files from all subfolders within the folder.
- Account Key (required): The contents of the
credentials.json
key file for the target service account. These contents must be expressed as a single-line string without line breaks.
Was this page helpful?