/cringemdb-java

A Java crawler application to extract basic informations from cringemdb.

Primary LanguageJavaMIT LicenseMIT

Unofficial Java API

Cringemdb-Java - Unofficial API crawler based.

Pull requests are welcome!

A Java crawler application to extract basic informations from Cringemdb. Using retrofit 2 and webmagic 2

Usage

Available on Maven Central

Add the following dependency to your Gradle project:

implementation 'io.github.alfrad:cringemdb-java:1.0.1'

or your Maven project:

<dependency>
    <groupId>io.github.alfrad</groupId>
    <artifactId>cringemdb-java</artifactId>
    <version>1.0.1</version>
</dependency>

You can use the application like:

try {
    String nameAndYearOfMovie = ??? // Pattern: Name of Movie (year)
    CringemdbVO resumeFromCringemdb = 
        Cringemdb.getInstance()
            .getCringemdbService()
            .getResumeFromCringemdb(nameAndYearOfMovie);
} catch (CringemdbNotFoundException e) {
	//means the movie not found in cringemdb.com
} catch (IOException e) {
	//retrofit exception
}

License

Created by Alfrad. See full list of contributors.