Skip to content

wandersoncferreira/jotun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jotun

Build Status



A Clojure library designed to interact with Anti-Captcha services online. The idea is to have an unique interface to deal with providers of anti-captcha utilities.

The first to be implemented will be the Anti-Captcha from Coliseo. I've being using this service for some time and I was missing a library to provide interface for them and other facilities.

jotun are Nordic mythological creates with great-strength that are often against the gods. The role and characteristics of the giants are often unclear and contradictory, from brutal beasts with childish intellect to wise ancient creatures. Peak your side.



Tasks implemented/available:

  • ImageToText: solve usual image captcha
  • NoCaptcha: Google Recaptcha puzzle solving
  • FunCaptcha: rotating captcha funcaptcha.com
  • SquareNetText: select objects on image with an overlay grid
  • GeeTest: sliding captcha from geetest.com
  • CustomCaptcha: image captcha with custom form.

There are still many decisions related to public interfaces and project structure to be developed.

Critical

The Anti-Captcha service is paid, therefore you need to get an account at their WebSite and charge it with a few dolars. It's the cheapest solution I found in the market.

Please provide you client key as a environment variable called apikey. The package will manage to get the correct result and use it accordingly.

Installation

Leiningen/Boot

[jotun "0.3.2"]

Clojure CLI/deps.edn

jotun {:mvn/version "0.3.2"}

Gradle

compile 'jotun:jotun:0.3.2'

Maven

<dependency>
  <groupId>jotun</groupId>
  <artifactId>jotun</artifactId>
  <version>0.3.1</version>
</dependency>

Usage

(ns ex-jotun.core
  (:require [jotun.image-to-text.core :refer [solve]]
            [jotun.utils :as j-utils]))

(let [image-url "https://www.scienceabc.com/wp-content/uploads/2016/07/Captcha-ex.jpg"]
  (solve image-url))
;; => {:cost "0.000700", :ip "179.110.41.240", :url "http://209.212.146.169/570/153941121973340.jpg",
;;     :solution "smwm", :create-time 1539411219, :end-time 1539411225}

(j-utils/get-balance);; => 9.7952


(j-utils/get-queue-stats)
;; => {:waiting {:value 18, :message "Amount of idle workers online, waiting for a task"},
;;     :load {:value 98.42, :message "Queue load in percents"},
;;     :bid {:value 6.509939E-4, :message "Average task solution cost in USD"},
;;     :speed {:value 11.15, :message "Average task solution speed in seconds"},
;;     :total {:value 1138, :message "Total number of workers"}}

License

Copyright © 2018 Wanderson Ferreira

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Clojure library to interface anti-captcha providers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published