Loading Data from Google Sheets

In the previous step, you learned how to quickly load data into Keboola using manual import. However, in real production projects, this is seldom used as most data is obtained automatically using data source connectors. In this part of the tutorial, you will use a Google Sheets data source connector to load data from an external spreadsheet.

Google Drive is commonly used for sharing small reference tables between different organizations. For our purposes, create a Google spreadsheet from the level.csv file. Imagine someone shared the level table with you through Google Drive.

Prepare

Go to Google Spreadsheets and start a new blank spreadsheet. Then go to FileImport and upload the level.csv file.

Google Spreadsheets Screenshot

Configure Google Sheets Data Source Connector

  1. Navigate to Components section in Keboola and click the Add Component button:

    Data Source Overview Screenshot

  2. Utilize the search box to locate the Google Sheets data source connector. Once found, click on it.

    Data Source Overview Screenshot

  3. Click Connect To My Data. The ‘Use With Demo Data’ option will extract datasets prepared by Keboola for your experimentation outside of this tutorial, and it can be found across all commonly used connectors.

  4. Enter a name and description and click Create Configuration.

    Create Google Sheets Configuration

    Each Keboola component (data source, data destination, or application) can support multiple configurations. This concept enables you to, for instance, extract data from multiple Google accounts.

  5. Authorize the connector to access the spreadsheet by clicking the Sign in with Google button.

    Sign in with Google

  6. On the following screen, click Allow.

    Access Google Account

  7. Now you want to select the Google Drive files to import.

    Select Google Drive Files

  8. In step 5, you authorized Keboola to use your account to access the Drive. In this step, you will be asked to grant access specifically to spreadsheets. Click ‘Select all’ and then proceed by clicking ‘Continue’ on the following screen.

    Get Access to Spreadsheets

  9. Use the search box to find your Level spreadsheet. Select it and click the Select button.

    Find Spreadsheet

  10. Keboola has automatically detected all sheets from within your spreadsheet and will now allow you to select the one you want to load.
  11. Select the sheet and click Save and Run Configuration. A job will be executed, and once completed, you will see a new table created.

    Save and Run Configuration

  12. The Google Sheets data source automatically generates an output bucket and table. Click on the name of the output table to check its contents, or navigate directly to the Storage section to explore the data.

    Go to Storage

What’s Next

Proceed to Data Manipulation for the next step in the tutorial. Alternatively, take another brief side step to explore loading data with the Database data source connector.

If You Need Help

Feel free to reach out to our support team if there’s anything we can help with.