RetroCrawler Core

Annotation based Retrofit converter for HTML

License

License

GroupId

GroupId

com.github.annypatel.retrocrawler
ArtifactId

ArtifactId

core
Last Version

Last Version

1.0.0-alpha1
Release Date

Release Date

Type

Type

jar
Description

Description

RetroCrawler Core
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 core

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

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