Import Tweets from Twitter

To search for tweets and import them:
  1. Select Twitter in the Import Data window.
    The first time you import tweets, you are directed to the Twitter website to log on to your account and authorize SAS Visual Analytics. After the initial logon, SAS Visual Analytics uses authorization tokens for accessing Twitter instead of requiring you to log on each time.
  2. Enter a search term and the maximum number of tweets to return.
    The search operators that you can use are described at https://dev.twitter.com/rest/public/search.
    Note: SAS does not support the following:
    • searches for languages other than English. Requests for other languages (such as using lang=fr) return no tweets.
    • search terms cannot include double-byte characters.
  3. (Optional) In the LASR Table section, enter the name for the table and a description. Review the library and location settings by clicking Advanced and make changes if necessary.
    You do not have access to the Advanced section if you are using the explorer or designer and do not have the Build Data capability. Instead, you can import the data to a general-purpose area or select Store the table in a private location to prevent other users from accessing the data.
  4. (Optional) Review the Proxy Server section and make changes if necessary.
  5. Click OK.
The first time that you successfully log on to Twitter, SAS stores authorization tokens that enable you to import tweets again without logging on to Twitter. If you click Clear Authorization Tokens, then the tokens for accessing Twitter are removed from SAS Visual Analytics.
The search results from a Twitter import in SAS Visual Analytics and the search results from Twitter’s own search interface do not match exactly. Each uses a different mechanism to download tweets. A Twitter import in SAS Visual Analytics uses Twitter’s public search API. There are limits on what data and how much data that SAS can download using Twitter’s public search API. These limits might not apply to Twitter’s own search interface. For more information, see https://dev.twitter.com/rest/reference/get/search/tweets.
For information about the data structure of imported tweets, see Schema for Imported Tweets.
Note: Rate limits apply to the Twitter service. Such limits are beyond the control of SAS Visual Analytics. You are required to follow all applicable terms of use that Twitter and others might promulgate as to the Twitter data.
Note: Certain functionality in the software enables the user to invoke external third-party resources. Be aware that use of these resources might result in disclosure and transmission of information that the user submits to these resources.