About streaming from Twitter
The Twitter API platform offers two options for streaming real-time Tweets: follow a Twitter user or track keywords.
Create a Twitter Stream Feed Connection to stream Twitts in real-time.
To stream data from Twitter, you first need to create a Twitter app (if you have not done it already).
Create a Connection
Step 1. In the
Connections window, click
+, and select
Step 2. Select
Twitter Streaming Feed.
Step 3. Enter the Connection parameters:
User IDs or Hashtags: comma-separated list of numeric Twitter User IDs to follow or (not and!) a comma-separated list of keywords (#hashtags) to track.
Consumer Key: the consumer key, assigned to the Twitter app created by you.
Consumer Secret: the consumer secret, assigned to the Twitter app created by you.
Access Token: the access token assigned to the Twitter app created by you.
Access Token Secret: the access token secret, assigned to the Twitter app created by you.
Stream Duration (sec): the duration of the stream in seconds. The maximum duration is 999 seconds. The Connection to the Twitter API will reset once the time elapses the configured number.
Flatten Status: Twitter streaming API returns highly nested JSON document. Enable this parameter to convert nested JSON into the flat one.
Template: since this Connection cannot sample the data to populate fields for the Mapping, use this field to define the structure of the returned JSON. Example:
Please sign in to leave a comment.