从流Twitter4j API中提取链接

时间:2019-02-14 14:26:19

标签: java twitter4j

有人可以协助我处理此案吗?我只需要从流中提取链接(URL)(来自Twitter的推文):

twitterStream.addListener(listener);
// sample() method internally creates a thread which manipulates TwitterStream and calls these adequate listener methods continuously.
twitterStream.sample();

FilterQuery fq = new FilterQuery();
fq.track("filter");
twitterStream.filter(fq);

提前谢谢!

0 个答案:

没有答案