<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SAS VA Twitter Analytics in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Twitter-Analytics/m-p/283591#M4776</link>
    <description>&lt;P&gt;I'm trying out the Twitter analytics in SAS VA 7.3&amp;nbsp;and it appears when I access the twitter account, it only allows about a week's worth of data to be extracted. I don't see a place to put in a date range....any suggestions?&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2016 19:22:52 GMT</pubDate>
    <dc:creator>ldenney</dc:creator>
    <dc:date>2016-07-11T19:22:52Z</dc:date>
    <item>
      <title>SAS VA Twitter Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Twitter-Analytics/m-p/283591#M4776</link>
      <description>&lt;P&gt;I'm trying out the Twitter analytics in SAS VA 7.3&amp;nbsp;and it appears when I access the twitter account, it only allows about a week's worth of data to be extracted. I don't see a place to put in a date range....any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2016 19:22:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Twitter-Analytics/m-p/283591#M4776</guid>
      <dc:creator>ldenney</dc:creator>
      <dc:date>2016-07-11T19:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Twitter Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Twitter-Analytics/m-p/284267#M4802</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/75204"&gt;@ldenney﻿&lt;/a&gt;, good question,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the SAS VA User Guide (&lt;A href="http://support.sas.com/documentation/cdl/en/vaug/68648/HTML/default/viewer.htm#n1w05z0ghdc44fn1f0swtmuiam3w.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/vaug/68648/HTML/default/viewer.htm#n1w05z0ghdc44fn1f0swtmuiam3w.htm&lt;/A&gt;) SAS VA application has the restrictions that the Twitter API has.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;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 for Twitter data.&lt;/PRE&gt;
&lt;P&gt;Therefore, even if you do this by code you might find similar results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On a try to help you, I found this great information and discussion, provided by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2917"&gt;@FalkoSchulz﻿&lt;/a&gt;:&amp;nbsp;&lt;A href="http://blogs.sas.com/content/sascom/2013/12/12/how-to-import-twitter-tweets-in-sas-data-step-using-oauth-2-authentication-style/" target="_blank"&gt;http://blogs.sas.com/content/sascom/2013/12/12/how-to-import-twitter-tweets-in-sas-data-step-using-oauth-2-authentication-style/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This provides the way to import the Twitter data by code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the discussion below, I could find the following, textually:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Hi Sander,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;The maximum number of tweets for&lt;A href="https://api.twitter.com/1.1/search/tweets.json" rel="nofollow" target="_blank"&gt;https://api.twitter.com/1.1/search/tweets.json&lt;/A&gt; is 100&lt;/STRONG&gt; (API details are &lt;A href="https://dev.twitter.com/rest/reference/get/search/tweets" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;). This blog entry was just a basic example to explain the general concept behind the authentication required as well as dealing with JSON results in SAS.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;In order to get more than hundred tweets you would need to understand working with timelines&lt;/STRONG&gt; (there is a &lt;STRONG&gt;&lt;A href="https://dev.twitter.com/rest/public/timelines" rel="nofollow" target="_blank"&gt;guide&lt;/A&gt;&lt;/STRONG&gt; with details). As a short summary you would introduce either a &lt;STRONG&gt;max_id&lt;/STRONG&gt; parameter which specifies the max tweet ID you want to recieve - in other words you will get tweets older than this ID (there is also a &lt;STRONG&gt;since_id&lt;/STRONG&gt; parameter which would return tweets younger than the one specified). In the past I was simply calling this macro x number of times in order to get multiple pages (each hundred tweets). On each call I'm appending the newly recieved tweets to a common tweet data set. I believe Twitter keeps about a one week history - so &lt;STRONG&gt;there is a natural limit how far back you can go. Initially you may have to run it a number of times&lt;/STRONG&gt; - but in dialy or hourly batch job you may just have to deal with a few hundred dependent on your search term.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Hope this helps. Cheers, Falko&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;I hope to be able to help you a bit there.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Juan&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 08:27:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Twitter-Analytics/m-p/284267#M4802</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2016-07-14T08:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS VA Twitter Analytics</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Twitter-Analytics/m-p/284865#M4820</link>
      <description>Hi Juan -&lt;BR /&gt;&lt;BR /&gt;Thanks for your response. I will look into these suggestions.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your help!&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Jul 2016 16:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/SAS-VA-Twitter-Analytics/m-p/284865#M4820</guid>
      <dc:creator>ldenney</dc:creator>
      <dc:date>2016-07-15T16:08:09Z</dc:date>
    </item>
  </channel>
</rss>

