我有这个代码:
import java.net.URI;
import java.util.List;
import net.moraleboost.streamscraper.Stream;
import net.moraleboost.streamscraper.Scraper;
import net.moraleboost.streamscraper.scraper.IceCastScraper;
public class Harvester
{
public static void main(String[] args) throws Exception
{
Scraper scraper = new IceCastScraper();
List<Stream> streams = scraper.scrape(new URI("http://host:port/"));
for (Stream stream: streams) {
System.out.println("Song Title: " + stream.getCurrentSong());
System.out.println("URI: " + stream.getUri());
}
}
}
我在哪里可以下载 JAR 用于导入 net.moraleboost.streamscraper.* 以工作?我可以找到它的源代码,但我给了我很多错误,有人可以提供我 .jar 以便我可以包含在 java 构建路径库中吗?
最佳答案
您可以在 https://code.google.com/p/streamscraper/ 克隆存储库
您也可以从这里下载代码:https://code.google.com/p/streamscraper/source/browse/
关于java - 流刮板 java lib eclipse,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22034967/