| 📚 Documentation Index | ⬅️ Back to Main README |
Synchronous Playwright + BQL agent for page automation with:
Module: captcha/playwright_bql_framework.py
CURLLM_OLLAMA_HOST (default http://localhost:11434)CURLLM_MODEL (default qwen2.5:7b)BQL_FRAMEWORK_LLM=openai and OPENAI_API_KEYOPENAI_MODEL (default gpt-4o-mini)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/bql_wp_login.pyexamples/bql_contact_form.pyexamples/bql_product_search.pyexamples/curl_wp_login.shexamples/curl_contact_form.shexamples/curl_product_search.shThis 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 → |