Hello! I'm looking for the way to collect tweet from twitter using Matlab as the follows.
- Given the query (i.e. iPad) - Given a period of time (i.e. Jan 2012 - Mar 2012)
Then the program will retrieve tweets contain the term 'iPad' within such period of time and stored in the text file.
Would you please suggest?
Thank you very much.

 採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 7 月 25 日

1 投票

You can use the Twitter REST API to perform such queries. There is a MATLAB File Exchange submission called twitty which uses that functionality - you can use it like any MATLAB class.

3 件のコメント

Rucci
Rucci 2012 年 7 月 25 日
Hello Kaustubha Govind,
Thank you very much for your advise. I have just completed creating my twitter credentials regarding the instruction. I run the command as the follow.
credentials.ConsumerKey = 'XXXXXXXXXXX';
credentials.ConsumerSecret = 'XXXXXXXXXXX';
credentials.AccessToken = 'XXXXXXXXXXXXX';
credentials.AccessTokenSecret = 'XXXXXXXXXXX';
Then I run the command tw = twitty(credentials)
But I got the error message as the follows
??? Error using ==> strfind Inputs must be character arrays.
Error in ==> twitty>twitty.twitty at 149 if strfind(lower(S{1}),'error'), error('The supplied credentials are not valid.'); end
Could you please advise?
Kaustubha Govind
Kaustubha Govind 2012 年 7 月 25 日
Rucci: Sorry, I'm not familiar with that submission, I just found it using a web search. Perhaps you can post your question as a comment on the twitty page, or contact the author directly.
Rucci
Rucci 2012 年 7 月 25 日
That's ok. Thank you very much. (^___^)

サインインしてコメントする。

その他の回答 (1 件)

Felix Heller
Felix Heller 2016 年 1 月 27 日

0 投票

Hey could u solve the problem? I am doing a thesis and I want to collect tweets for a specific period? may you help me?

カテゴリ

ヘルプ センター および File ExchangeFunctions についてさらに検索

質問済み:

2012 年 7 月 25 日

回答済み:

2016 年 1 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by