3

When I search for a given hashtag, I get the results for recent tweets containing that hashtag. This is what I want to stream, So if any new tweets with this hashtag are made I will know.

4

1 回答 1

4
Twitter twitter = new TwitterFactory().getInstance();
try {
    QueryResult result = twitter.search(new Query("#myhashtag"));
} catch (TwitterException te) {
    te.printStackTrace();
}

资源

您可能需要转义#符号

于 2012-07-14T18:55:03.890 回答