streamscraper


A java library to harvest metadata from SHOUTcast / IceCast servers.

What's this?

StreamScraper is a java library that can be used to harvest streaming metadata (current song title, genre, current listener count, etc.) from SHOUTcast/IceCast servers.

Usage

``` 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 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()); } } } ```

Project Information

Labels:
scraper streaming icecast shoutcast