A java Mercury Web Parser api using retrofit and okhttp.
More info https://mercury.postlight.com/web-parser/
- How to use it
Add this line to your buildscript repositories section: *(Don't know why I can't add to jcenter)
buildscript {
repositories {
maven {url "http://jalaria.bintray.com/generic"}
}
}
Then on dependencies add:
compile 'com.github.jalaria001:mercury-web-parser-java:1.0.0'
Using this library is so simple:
Mercury mercury = new Mercury("YOUR MERCURY API KEY");
Response<Article> response = mercury.parseService().getArticle("URL").execute();
if(response.isSuccessful()){
Article article = response.body();
...
}
...