Enable the Twitter JDBC Driver in KNIME

Ready to get started?

Download a free trial:

Download Now

Learn more:

Twitter JDBC Driver

A straightforward interface to connect any Java application with Twitter integration capabilities including Search, GeoSearch, UserInfo, DirectMessages, Followers, and more!

Use standard data access components in KNIME to create charts and reports with Twitter data.

One of the strengths of the CData JDBC Driver for Twitter is its cross-platform support, enabling integration with major BI tools. Follow the procedure below to access Twitter data in KNIME and to create a chart from Twitter data using the report designer.

Define a New JDBC Connection to Twitter Data

  1. Go to File -> Preferences -> KNIME -> Databases
  2. Click Add File and add the cdata.jdbc.twitter.jar. The driver JAR file is located in the lib subfolder of the installation directory.
  3. Click Find driver classes
  4. Set the ID and the Name of the connection (you can set any values you prefer for these fields as they are not restricted)
  5. Set the URL template. A typical JDBC URL is provided below: jdbc:twitter:InitiateOAuth=GETANDREFRESH
  6. For assistance in constructing the JDBC URL, use the connection string designer built into the Twitter data JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.

    java -jar cdata.jdbc.twitter.jar

    Additionally, please refer to our documentation to learn more about Connection Properties

  7. Click OK to close the configuration section.
  8. Under Node Repository go to DB -> Connection -> drag and drop DB Connector. Double-click on it and change the driver name to the driver you just configured, in this case, Twitter (ID: Twitter). The Database URL should change automatically.
  9. Click Apply and OK to save changes.
  10. Right-click on the connector and select Execute. You will see that the connector will allow you to redirect to the browser where you will need to log in and allow access. After that, you will get connected successfully.
  11. Now you can go to the Read/Write section in Node Repository and get a DB Query Reader, to be able to execute a query.

  12. Double-click on your DB Query Reader and click the refresh button to load the metadata. Create an SQL Statement and click Evaluate. After clicking Evaluate you will be able to see the records requested. To learn more about the tables/views that are listed in our driver please refer to our Data Model.

Get Started Today

Download a free, 30-day trial of the CData JDBC Driver for Twitter and start building Twitter-connected charts and reports with KNIME. Reach out to our Support Team if you have any questions.