Collecting tweet from twitter using Matlab

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.

 Respuesta aceptada

Kaustubha Govind
Kaustubha Govind el 25 de Jul. de 2012

1 voto

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 comentarios

Rucci
Rucci el 25 de Jul. de 2012
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 el 25 de Jul. de 2012
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 el 25 de Jul. de 2012
That's ok. Thank you very much. (^___^)

Iniciar sesión para comentar.

Más respuestas (1)

Felix Heller
Felix Heller el 27 de En. de 2016

0 votos

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?

Categorías

Más información sobre Functions en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Jul. de 2012

Respondida:

el 27 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by