Converter: Jsoup Annotations

Annotation based Retrofit converter for HTML

License

License

Categories

Categories

jsoup Business Logic Libraries
GroupId

GroupId

com.github.annypatel.retrocrawler
ArtifactId

ArtifactId

converter-jsoup-annotations
Last Version

Last Version

1.0.0-alpha1
Release Date

Release Date

Type

Type

aar
Description

Description

Converter: Jsoup Annotations
Annotation based Retrofit converter for HTML
Project URL

Project URL

https://github.com/annypatel/RetroCrawler/
Source Code Management

Source Code Management

https://github.com/annypatel/RetroCrawler/

Download converter-jsoup-annotations

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.annypatel.retrocrawler/converter-jsoup-annotations/ -->
<dependency>
    <groupId>com.github.annypatel.retrocrawler</groupId>
    <artifactId>converter-jsoup-annotations</artifactId>
    <version>1.0.0-alpha1</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.annypatel.retrocrawler/converter-jsoup-annotations/
implementation 'com.github.annypatel.retrocrawler:converter-jsoup-annotations:1.0.0-alpha1'
// https://jarcasting.com/artifacts/com.github.annypatel.retrocrawler/converter-jsoup-annotations/
implementation ("com.github.annypatel.retrocrawler:converter-jsoup-annotations:1.0.0-alpha1")
'com.github.annypatel.retrocrawler:converter-jsoup-annotations:aar:1.0.0-alpha1'
<dependency org="com.github.annypatel.retrocrawler" name="converter-jsoup-annotations" rev="1.0.0-alpha1">
  <artifact name="converter-jsoup-annotations" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.annypatel.retrocrawler', module='converter-jsoup-annotations', version='1.0.0-alpha1')
)
libraryDependencies += "com.github.annypatel.retrocrawler" % "converter-jsoup-annotations" % "1.0.0-alpha1"
[com.github.annypatel.retrocrawler/converter-jsoup-annotations "1.0.0-alpha1"]

Dependencies

compile (5)

Group / Artifact Type Version
com.github.annypatel.retrocrawler : core jar 1.0.0-alpha1
com.github.annypatel.retrocrawler : reader jar 1.0.0-alpha1
org.jsoup : jsoup jar 1.11.2
com.github.fcannizzaro » jsoup-annotations jar 1.0.3
com.squareup.retrofit2 : retrofit jar 2.4.0

Project Modules

There are no modules declared in this project.

RetroCrawler

RetroCrawler provides Retrofit converters for deserializing Html using jspoon and jsoup-annotations. Both of them internally uses Jsoup.

Jspoon Converter

A default Jspoon instance will be created or one can be configured and passed to the RetroCrawlerJSpoonConverterFactory to further control the deserialization. For more information on how to use Jspoon annotations refer this.

Download

implementation 'com.github.annypatel.retrocrawler:converter-jspoon:1.0.0-alpha1'

Usage

To use RetroCrawler Jspoon converter, just add converter when building your Retrofit instance.

Retrofit retrofit = new Retrofit.Builder()
	.baseUrl("https://api.example.com")
	.addConverterFactory(RetroCrawlerJSpoonConverterFactory.create())
	.build();

Jsoup-Annotations Converter

JsoupProcessor class from jsoup-annotations will be used by RetroCrawlerJSoupAnnotationConverterFactory for Html deserialization. For more information on how to use jsoup-annotations refer this.

Download

allprojects {
    repositories {
        maven { url 'https://jitpack.io' }
    }
}
dependencies {
    implementation 'com.github.annypatel.retrocrawler:converter-jsoup-annotations:1.0.0-alpha1'
}

Usage

To use RetroCrawler Jsoup-Annotations converter, just add converter when building your Retrofit instance.

Retrofit retrofit = new Retrofit.Builder()
	.baseUrl("https://api.example.com")
	.addConverterFactory(RetroCrawlerJSoupAnnotationConverterFactory.create())
	.build();

Versions

Version
1.0.0-alpha1