Analyzing Historical Twitter data for Keywords by Date

조회 수: 1 (최근 30일)
dsmalenb
dsmalenb 2016년 5월 3일
편집: dsmalenb 2016년 5월 4일
Hello Matlab Team!
I am trying to write a script which lets me search historical tweets for specific keywords between two dates. I can't seem to get the pull past the current date. Below is my code thus far. It is not much since I am not sure how to proceed from here. I feel as if there is a simple solution but I have not found a solution via almighty Google.
I used twitty (<http://www.mathworks.com/matlabcentral/fileexchange/34837-twitty>) and json parsor (<http://www.mathworks.com/matlabcentral/fileexchange/20565-json-parser>) to get this far FYI.
Any help would be greatly appreciated!
clear;
% Store Credentials - I masked mine btw
creds = struct('ConsumerKey','---',...
'ConsumerSecret','---',...
'AccessToken','---',...
'AccessTokenSecret','---');
% set up a twitty object
addpath twitty_1.1.1; % Twitty
addpath parse_json; % Twitty's default json parser
addpath jsonlab; % I prefer JSONlab, however.
tw = twitty(creds); % instantiate a Twitty object
tw.jsonParser = @loadjson; % specify JSONlab as json parser
% search for English tweets that mention 'matlab'
S = tw.search('matlab');

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by