1

我有这个代码:

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 以便 import net.moraleboost.streamscraper.* 工作?我可以找到它的源代码,但我给了我很多错误,有人可以提供我.jar 以便我可以包含在 java 构建路径库中吗?

4

1 回答 1

3

您可以在https://code.google.com/p/streamscraper/克隆存储库

您也可以从这里下载代码:https ://code.google.com/p/streamscraper/source/browse/

于 2014-02-26T07:55:25.943 回答