Skip to main content

LLM-powered web automation library with autonomous agents

Project description

webtask

PyPI version Tests License: MIT

LLM-powered web automation with autonomous agents.

📚 Documentation | 🐍 PyPI | 📊 Benchmarks


Quick Start

pip install pywebtask
playwright install chromium
export GEMINI_API_KEY="your-key"  # or OPENAI_API_KEY

Autonomous mode - Give it a task, let the agent figure out the steps:

from webtask import Webtask
from webtask.integrations.llm import Gemini
from playwright.async_api import async_playwright

async with async_playwright() as p:
    browser = await p.chromium.launch(headless=False)
    llm = Gemini(model="gemini-2.5-flash")

    agent = await Webtask().create_agent_with_browser(llm=llm, browser=browser)

    result = await agent.do("search for cats and click the first result")

Features

  • Multimodal by default - Sees screenshots with bounding boxes + DOM text
  • Extensible - Pluggable LLM and browser interfaces
  • Batteries included - OpenAI, Gemini LLMs and Playwright browser provided
  • Isolated sessions - Separate cookies and storage per agent

Documentation

Full Documentation


Benchmarks

webtask-benchmarks - Evaluation on Mind2Web and other benchmarks


License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pywebtask-0.17.7.tar.gz (65.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywebtask-0.17.7-py3-none-any.whl (95.8 kB view details)

Uploaded Python 3

File details

Details for the file pywebtask-0.17.7.tar.gz.

File metadata

  • Download URL: pywebtask-0.17.7.tar.gz
  • Upload date:
  • Size: 65.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pywebtask-0.17.7.tar.gz
Algorithm Hash digest
SHA256 94093f69936f8b613ce71595c645efbc69a489306ebc6eb9a13c0006fe7eadf1
MD5 2863ed9348642fd497c29d8b6dfbb979
BLAKE2b-256 db08478c681ff0e0cb91d0b15c6edc7d2eef856cb8909007a60ad83448a13b8b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywebtask-0.17.7.tar.gz:

Publisher: publish.yml on steve-z-wang/webtask

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pywebtask-0.17.7-py3-none-any.whl.

File metadata

  • Download URL: pywebtask-0.17.7-py3-none-any.whl
  • Upload date:
  • Size: 95.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pywebtask-0.17.7-py3-none-any.whl
Algorithm Hash digest
SHA256 cfb04d04b0a658cc469289ce93cb1471ccdc1c80d439507d9f368527b1533e07
MD5 961af2751683505ee3206e88e61d0880
BLAKE2b-256 c1adcd2bba34451b010ecfefd7c237638ab6c6f30490807093f0b9825679971c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywebtask-0.17.7-py3-none-any.whl:

Publisher: publish.yml on steve-z-wang/webtask

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page