CData Python Connector for Google Search

Build 24.0.9060

Establishing a Connection

The objects available within our connector are accessible from the "cdata.googlesearch" module. To use the module's objects directly:

  1. Import the module as follows:
    import cdata.googlesearch as mod
  2. To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
    mod.connect("ApiKey=abc123; CustomSearchID=def456;")

Connecting to Google Search

Provide the following connection properties before adding the authentication properties.

  • CustomSearchId: Obtain this value by signing into Google Custom Search Engine and creating a new search engine.
  • APIKey: You must enable the Custom Search API in the Google API Console.

For more information on obtaining values for these properties, refer to Connecting to Google Search.

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060