RetroCrawler Reader

Annotation based Retrofit converter for HTML

License

License

GroupId

GroupId

com.github.annypatel.retrocrawler
ArtifactId

ArtifactId

reader
Last Version

Last Version

1.0.0-alpha1
Release Date

Release Date

Type

Type

jar
Description

Description

RetroCrawler Reader
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 reader

How to add to project

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

Dependencies

runtime (1)

Group / Artifact Type Version
com.github.annypatel.retrocrawler : core jar 1.0.0-alpha1

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

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