【问题标题】:streamscraper java lib eclipsestreamcraper java lib 日食
【发布时间】:2014-02-26 07:47:14
【问题描述】:

我有这个代码:

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 构建路径库中吗?

【问题讨论】:

标签: java eclipse jar libs


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 2015-06-24
    • 1970-01-01
    • 1970-01-01
    • 2022-07-30
    • 2011-01-19
    • 2011-08-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多