The new KNIME Twitter nodes allow you to search for Tweets on Twitter, retrieve information about users, post Tweets via KNIME and much more.
To use the Twitter nodes you need a Twitter account, create a Twitter App and setup a Twitter API Connector node, described by the following steps:
- Go to https://apps.twitter.com and login with your Twitter account
- Click 'Create New App'
- Fill out the form
- Click 'API Keys'
- Click 'Create my access token'
- Use the API key, API secret, Access token and Access token secret to setup the Twitter API Connector node
The Twitter Search node allows you to search for Tweets by specific queries. Use the same syntax for these queries as for web based queries https://twitter.com/search-home. You can specify the maximal number of results as well as what kind of Tweets will be returned as result: the most popular Tweets, the most relevant, or a mixture of both. Note that the actual number of results might vary. Loading the profile images can slow down the execution of the node considerably.
The Twitter Timeline node downloads Tweets as a timeline. They can either be Tweets of the home timeline, mentions, Retweets or Tweets from a specific user.
The home timeline contains the Tweets shown on your Twitter 'Home' page, which are your own Tweets as well as Tweets of followed users. The mentions timeline contains Tweets in which you are mentioned. The Retweets timeline contains Retweets of your Tweets. With the user timeline you can get all recent Tweets of a specific user.
The Twitter Users node allow you to retrieve detailed information on Twitter users, such as their location, number of followers, and much more. The node requires a data table containing a column of Twitter user names as input and can be used in combination with the Twitter Search and Twitter Timeline nodes.
With the Twitter Post Tweet node you can post tweets directly from KNIME. The text is specified in the dialog and variables can be inserted anywhere in the text. The tweet will be posted on execution.