im.nll.data-diffbot-java

diffbot-java - diffbot api service for java.

License

License

Categories

Categories

Java Languages Data
GroupId

GroupId

im.nll.data
ArtifactId

ArtifactId

diffbot-java
Last Version

Last Version

0.9.1
Release Date

Release Date

Type

Type

jar
Description

Description

im.nll.data-diffbot-java
diffbot-java - diffbot api service for java.
Project URL

Project URL

https://github.com/fivesmallq/diffbot-java
Source Code Management

Source Code Management

https://github.com/fivesmallq/diffbot-java

Download diffbot-java

How to add to project

<!-- https://jarcasting.com/artifacts/im.nll.data/diffbot-java/ -->
<dependency>
    <groupId>im.nll.data</groupId>
    <artifactId>diffbot-java</artifactId>
    <version>0.9.1</version>
</dependency>
// https://jarcasting.com/artifacts/im.nll.data/diffbot-java/
implementation 'im.nll.data:diffbot-java:0.9.1'
// https://jarcasting.com/artifacts/im.nll.data/diffbot-java/
implementation ("im.nll.data:diffbot-java:0.9.1")
'im.nll.data:diffbot-java:jar:0.9.1'
<dependency org="im.nll.data" name="diffbot-java" rev="0.9.1">
  <artifact name="diffbot-java" type="jar" />
</dependency>
@Grapes(
@Grab(group='im.nll.data', module='diffbot-java', version='0.9.1')
)
libraryDependencies += "im.nll.data" % "diffbot-java" % "0.9.1"
[im.nll.data/diffbot-java "0.9.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.httpcomponents : fluent-hc jar 4.5.2
com.alibaba : fastjson jar 1.2.12
org.slf4j : slf4j-api jar 1.7.7

test (3)

Group / Artifact Type Version
org.slf4j : slf4j-log4j12 jar 1.7.7
log4j : log4j jar 1.2.17
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

diffbot-java

Maven Central License

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.

Versions

Version
0.9.1
0.9.0