LyricWiki Java API
LyricWiki is a nice repository which provides lyrics to nearly 800.000 songs of different artists worldwide. They seem to be eager to promote and expand the website (i.e. they are hosting a Facebook-Application called LyricWiki-Challenge).
Access to LyricsWiki
One of the most delightful things about LyricWiki is that it provides a SOAP webservice for information retrieval. This is one bright spot in the currently escalating fashion of REST services.
Anyway, whereas SOAP usually promises an easy way of automatically integrating webservices into your own solutions, this particular service needs some hacking too. The wsdl has to be downloaded and manipulated in order to run any generator on it. Furthermore it only supports JAX-RPC style, which demands a bunch of extra libraries to be added to the classpath.
Having done all this it works perfectly and does what it's supposed to - deliver lyrics...
JavaLyricWiki
A java client for accessing LyricsWiki is provided in the download section. It implements the LyricWiki API and can be used accordingly.
Example:
JavaLyricsWiki jlw = new JavaLyricsWiki();
try {
LyricsResult result = jlw.getSong("Metallica", "One");
System.out.println(result.getLyrics());
} catch (RemoteException ex) { ...
Links
LyricsWiki - http://lyricwiki.org
LyricsWiki-SOAP - http://lyricwiki.org/LyricWiki:SOAP












Comments