【发布时间】:2016-03-21 20:52:59
【问题描述】:
这是我查找主题标签的方法:
void getNewTweets()
{
//try the search
try
{
Query query = new Query(searchString);
//get the last 50 tweets
query.count(2);
QueryResult result = twitter.search(query);
tweets = result.getTweets();
System.out.println(tweets);
}
//if there is an error then catch it and print it out
catch (TwitterException te)
{
System.out.println("Failed to search tweets: " + te.getMessage());
System.exit(-1);
}
}
我正在使用 Twitter4j 库。我如何计算找到的推文数量?
【问题讨论】:
标签: java processing twitter4j