Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Solve BLS CAPTCHA with Python and CaptchaAI

Full working example for solving BLS CAPTCHA using the CaptchaAI API.

Languages: Python, Node.js, PHP, Go, Java, C#, Ruby, Rust, Kotlin, Bash

Related article

This example accompanies the blog article: Solve BLS CAPTCHA with Python and CaptchaAI

Prerequisites

  • A CaptchaAI account with API key (get one here)
  • A target page with BLS CAPTCHA for testing

Quick start

  1. Clone the repository:

    git clone https://github.com/CaptchaAI/CaptchaAI-Examples.git
    cd CaptchaAI-Examples/articles/solve-bls-captcha-python
  2. Copy and edit the environment file:

    cp .env.example .env
  3. Run any language example:

Python

cd python && pip install -r requirements.txt && python solve.py

Node.js

cd node && npm install && node solve.js

PHP

cd php && composer install && php solve.php

Go

cd go && go run solve.go

Java

cd java && javac Solve.java && java Solve

C#

cd csharp && dotnet run

Ruby

cd ruby && ruby solve.rb

Rust

cd rust && cargo run

Kotlin

cd kotlin && kotlinc solve.kt -include-runtime -d solve.jar && java -jar solve.jar

Bash

cd bash && chmod +x solve.sh && ./solve.sh

How it works

  1. Submit — Sends the CAPTCHA parameters to https://ocr.captchaai.com/in.php using method bls
  2. Poll — Checks https://ocr.captchaai.com/res.php every 5 seconds for the result
  3. Result — Returns the solved token/answer ready for use

API documentation

Related examples

Browse more examples in the CaptchaAI-Examples repository.