Rest Vs Stream Api

614 views
Skip to first unread message

Geetika Mittal

unread,
Feb 6, 2014, 3:55:37 AM2/6/14
to python-...@googlegroups.com
Hi guys,

I am a little confused about the Rest API & Streaming API. I have read about it a lot, but since I am new to this concept & new to code languges all together, I am finding it difficult to grasp the concept. Also, I read somewhere the Search Api is a part of Rest API. Am i correct?

Would really appreciate it if someone can explain the difference to me! Also,  for twitter data mining should we use the Restful Api as opposed to Streaming Api?

rakesh mukundan

unread,
Feb 6, 2014, 4:11:42 AM2/6/14
to python-...@googlegroups.com
Few my experiece, for data minign its best to use a combination of both REST and Streaming API.

Streaming API lets you consume lots of data, however REST APIs are limited. However Streaming APi doesn't esnure that you get all the tweets, few tweets might get missed. But REST APIs have better accuracy.

If you are planning to gather lots of data for a particular set of keywords, my suggestion is to use streaming.



-----
Rakesh Mukundan
http://www.rakeshmukundan.in/


--
You received this message because you are subscribed to the Google Groups "python-twitter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-twitte...@googlegroups.com.
To post to this group, send email to python-...@googlegroups.com.
Visit this group at http://groups.google.com/group/python-twitter.
For more options, visit https://groups.google.com/groups/opt_out.

Geetika Mittal

unread,
Feb 6, 2014, 4:22:24 AM2/6/14
to python-...@googlegroups.com
Thanks for the reply, Rakesh!

Shouldn't we be using the Search Api if we want tweets for a particular set of keywords? If yes, then Search & Streaming Api both allows you to extract data for a certain set of keywords? Rest Api would have data for a particular user handle then (and not search keywords)?

Please correct me if  I am wrong.

rakesh mukundan

unread,
Feb 6, 2014, 6:16:33 AM2/6/14
to python-...@googlegroups.com
Using Search APi you can get results of keyword one at a time. However Streaming lets you specify a set of filters and monitor them in real time. Corect if you want to monitor a particular user, REST would be better option.

It all depends on the application

-----
Rakesh Mukundan
http://www.rakeshmukundan.in/


--
Reply all
Reply to author
Forward
0 new messages