質問

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