Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 980 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 980 Bytes

mercury-web-parser-java

Download

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