diffbot api service for java. diffbot api doc https://www.diffbot.com/dev/docs/
#Usage To add a dependency on diffbot-java using Maven, use the following:
<dependency>
<groupId>im.nll.data</groupId>
<artifactId>diffbot-java</artifactId>
<version>0.9.1</version>
</dependency>
To add a dependency using Gradle:
dependencies {
compile 'im.nll.data:diffbot-java:0.9.1'
}
#Examples
###article api
@Test
public void article() throws Exception {
String url = "http://www.bloomberg.com/news/articles/2016-03-07/alibaba-finance-affiliate-buy-h-k-firm-for-china-lotteries";
Article article = DiffbotClient.newClient(token).article(url);
System.out.println(article.getType());
System.out.println(article.getTitle());
System.out.println(article.getEstimatedDate());
System.out.println(article.getSiteName());
System.out.println(article.getText());
System.out.println(article.getPageUrl());
System.out.println(article.getHtml());
System.out.println(article.getDate());
System.out.println(article.getAuthor());
System.out.println(article.getAuthorUrl());
//and etc...
}
see Example
#Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/fivesmallq/diffbot-java.