Unfortunately http://www.metal-archives.com/ does not provide any API whats so ever, this library exists. Because Encyclopedia Metallum is still the best website to get correct and complete information about any metal band on earth.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Just install it with maven
mvn clean install
Snapshots (Repository http://oss.sonatype.org/content/repositories/snapshots)
<dependency>
<groupId>com.github.loki-afro</groupId>
<artifactId>metalarchives-api</artifactId>
<version>0.5.0</version>
</dependency>
compile 'com.github.loki-afro:metalarchives-api:0.5.0'
public static void main(String[] args) {
final BandSearchService service = new BandSearchService();
final BandSearchQuery query = new BandSearchQuery();
// Here we give some parameters to the query
// In our case the name of the band and
// the second parameter here is exact match, because we are sure that there is a Band named Slayer
query.setBandName("Slayer", true);
// now we say "search", like pressing the search button
try {
final List<Band> resultList = service.performSearch(query);
for (final Band band : resultList) {
System.out.println("Bandname: " + band.getName());
System.out.println("Bandgenre: " + band.getGenre());
System.out.println("Bandstatus: " + band.getStatus().asString());
System.out.println("---");
}
} catch (MetallumException e) {
e.printStackTrace();
}
}
I wrote this library some years a ago, used it to tag my music library. (that tagger is not available and was just a huge hack :D) Later it was used in an Android App to have a mobile version of the original site.
"THE BEER-WARE LICENSE" (Revision 42):
Phillip Wirth<[email protected]> wrote this file.
As long as you retain this notice you can do whatever you want with this stuff.
If we meet some day, and you think this stuff is worth it, you can buy me a non alcohol-free in return.
Phillip Wirth