https://github.com/alperensert/capmonster_java
Capmonster.cloud package for Java
https://github.com/alperensert/capmonster_java
capmonster capmonster-cloud recaptcha-v2 selenium-java
Last synced: 9 days ago
JSON representation
Capmonster.cloud package for Java
- Host: GitHub
- URL: https://github.com/alperensert/capmonster_java
- Owner: alperensert
- License: mit
- Created: 2021-12-19T18:49:36.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T01:10:21.000Z (almost 3 years ago)
- Last Synced: 2025-07-24T23:34:05.163Z (6 months ago)
- Topics: capmonster, capmonster-cloud, recaptcha-v2, selenium-java
- Language: Java
- Homepage: https://github.com/alperensert/capmonster_java/wiki
- Size: 32.2 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Capmonster.cloud for Java
-
      
[Capmonster.cloud](https://capmonster.cloud) package for Java
If you have any problem with usage, [read the documentation](https://github.com/alperensert/capmonster_java/wiki) or [create an issue](https://github.com/alperensert/capmonster_java/issues/new)
*At least 2x cheaper, up to 30x faster than manual recognition services.*
### Installation
- Maven
```xml
io.github.alperensert
capmonster_java
RELEASE
```
- Gradle
```groovy
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
```java
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
```java
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](https://github.com/alperensert/capmonster_java/wiki)