curllm

Playwright + BQL Framework

📚 Documentation Index ⬅️ Back to Main README

Overview

Synchronous Playwright + BQL agent for page automation with:

Module: captcha/playwright_bql_framework.py

LLM selection

Usage (Python)

python -m pip install playwright
python -m playwright install chromium
from playwright.sync_api import sync_playwright
from captcha.playwright_bql_framework import BQLAgent, select_llm_caller

with sync_playwright() as pw:
    browser = pw.chromium.launch(headless=False)
    page = browser.new_page()
    page.goto("https://www.prototypowanie.pl/wp-login.php", wait_until="networkidle")

    agent = BQLAgent(page, call_llm=select_llm_caller())
    res = agent.run_instruction("Zaloguj się do WordPress. Login: admin, Hasło: test123.")
    print(res)
    browser.close()

Examples in repo

CAPTCHA note

This framework only detects CAPTCHA-like widgets and returns an interrupt action. The core curllm executor can solve widget CAPTCHAs via 2captcha token injection if --captcha is enabled and CAPTCHA_API_KEY is set.


📚 Documentation Index ⬆️ Back to Top Next: Examples →