Access to Anti Captcha API v2 via JAVA
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea IntelliJ IDEA and Eclipse project files Feb 22, 2017
libs API v2 code and libs Feb 22, 2017
src/com/anti_captcha
.classpath
.gitignore Not needed project files removed Feb 22, 2017
.project
README.txt
anticaptcha_example.eml
anticaptcha_example.iml
captcha.jpg

README.txt

Download the full project (2.5 mb): https://yadi.sk/d/6V8NfwDe3EQ7z4

You need Java 1.8 installed.
This is an IntelliJ IDEA project and it should be compatible with Eclipse (but not tested).

If you want to compile the project in console (tested on MacOS 10.11):

1. Make sure you are using Java 1.8:
$ javac -version
if you installed Java 1.8 before, but previous command gives you "1.7", you need to switch it to 1.8:
$ export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

2. Compile:
$ javac -cp "libs/*" src/com/anti_captcha/AnticaptchaBase.java src/com/anti_captcha/Main.java src/com/anti_captcha/IAnticaptchaTaskProtocol.java src/com/anti_captcha/Api/ImageToText.java src/com/anti_captcha/Api/NoCaptcha.java src/com/anti_captcha/Api/NoCaptchaProxyless.java src/com/anti_captcha/ApiResponse/BalanceResponse.java src/com/anti_captcha/ApiResponse/CreateTaskResponse.java src/com/anti_captcha/ApiResponse/TaskResultResponse.java src/com/anti_captcha/Helper/DebugHelper.java src/com/anti_captcha/Helper/HttpHelper.java src/com/anti_captcha/Helper/JsonHelper.java src/com/anti_captcha/Helper/StringHelper.java src/com/anti_captcha/Http/HttpRequest.java src/com/anti_captcha/Http/HttpResponse.java

3. Run:
$ java -cp "src:libs/*" com.anti_captcha.Main