문제

Can someone tell whether my understanding is correct.

twitterstream.addlistener(listner)

is for each tweet we are capturing?

Dataobjectfactory.getRawjson(status)

converts object into json string?

도움이 되었습니까?

해결책

First of all, twitterstream.addlistener(listner) is for generating a listener in twitterstream to listen all tweets which hit your conditions. So, that means you do not have to add more than one listener to get all the tweets. However, you might add more than one listener for different purposes like getting tweets only having a particular hashtag with each listener, etc..

The second thing you asked (Dataobjectfactory.getRawjson(status)) is returning the json formatted string of the caught tweet status.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top