Giter Site home page Giter Site logo

alperensert / capmonster_java Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 33 KB

Capmonster.cloud package for Java

Home Page: https://github.com/alperensert/capmonster_java/wiki

License: MIT License

Java 100.00%
capmonster capmonster-cloud selenium-java recaptcha-v2

capmonster_java's Introduction

Capmonster.cloud for Java

GitHub repo size GitHub Maven Central Sonatype Nexus (Releases) GitHub last commit GitHub Release Date GitHub Repo stars

Capmonster.cloud package for Java

If you have any problem with usage, read the documentation or create an issue

At least 2x cheaper, up to 30x faster than manual recognition services.

Installation

  • Maven
    <dependency>
        <groupId>io.github.alperensert</groupId>
        <artifactId>capmonster_java</artifactId>
        <version>RELEASE</version>
    </dependency>
  • Gradle
    implementation group: 'io.github.alperensert', name: 'capmonster_java', version: 'RELEASE'

Supported captcha types

  • Image to text
  • Recaptcha v2
  • Recaptcha v3
  • Fun Captcha
  • HCaptcha
  • GeeTest

Usage Examples

Image to text

import io.github.alperensert.capmonster_java.tasks.ImageToTextTask;
import org.json.JSONObject;

public class Capmonster {
    public static void main(String[] args) throws InterruptedException {
        ImageToTextTask imageToTextTask = new ImageToTextTask("API_KEY");
        ImageToTextTask.TaskBuilder taskBuilder = new ImageToTextTask.TaskBuilder(
                "BASE_64_ENCODED_IMAGE")
                .setModuleName("universal");
        int taskId = imageToTextTask.createTask(taskBuilder);
        JSONObject result = imageToTextTask.joinTaskResult(taskId);
        System.out.println(result);
    }
}

Recaptcha v2

import io.github.alperensert.capmonster_java.tasks.RecaptchaV2Task;
import io.github.alperensert.capmonster_java.utilities.UserAgent;
import org.json.JSONObject;

public class Capmonster {
    public static void main(String[] args) throws InterruptedException {
        UserAgent userAgent = new UserAgent("some user agent");
        RecaptchaV2Task recaptchaV2Task = new RecaptchaV2Task("API_KEY");
        RecaptchaV2Task.TaskBuilder taskBuilder = new RecaptchaV2Task.TaskBuilder(
                "WEBSITE_URL",
                "WEBSITE_KEY")
                .setUserAgent(userAgent)
                .setCache(true);
        int taskId = recaptchaV2Task.createTask(taskBuilder);
        JSONObject result = recaptchaV2Task.joinTaskResult(taskId);
        System.out.println(result);
    }
}

For other examples and api documentation please visit wiki

capmonster_java's People

Contributors

dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

anjeshshrestha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.