Connect to Scrapfly Data in DBArtisan
The CData ODBC Driver for Scrapfly seamlessly integrates Scrapfly data into database management tools like DBArtisan by enabling you to access Scrapfly data as a database. This article shows how to create an data source for Scrapfly in DBArtisan and execute queries. You can then edit data visually and execute standard SQL.
Integrate Scrapfly Data into DBArtisan Projects
If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.
The Scrapfly API uses API Key authentication. The API key is passed as the key query parameter on every request.
Using API Key Authentication
Your Scrapfly API key is required to create a connection. To obtain your API key:
- Log into your Scrapfly account at scrapfly.io.
- Navigate to Dashboard and select API Keys.
- Copy your API key (begins with scp-live- for production or scp-test- for the test environment).
After obtaining your API key, set the following connection properties:
- AuthScheme: Set this to APIKey.
- APIKey: Set this to your Scrapfly API key.
Example connection string:
Profile=C:\profiles\Scrapfly.apip;AuthScheme=APIKey;ProfileSettings='APIKey=your_api_key';
You can then follow the steps below to register Scrapfly data as a database instance in your project:
- In DBArtisan, click Data Source -> Register Datasource.
- Select Generic ODBC.
- Enter a name for the data source and select the DSN.
- Finish the wizard to connect to Scrapfly data. Scrapfly entities are displayed in the Datasource Explorer.
You can now work with Scrapfly data as you work with any other database. See the driver help documentation for more information on the queries supported by the Scrapfly API.