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.3.tar.gz (64.7 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.3-py3-none-any.whl (95.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywebtask-0.17.3.tar.gz
  • Upload date:
  • Size: 64.7 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.3.tar.gz
Algorithm Hash digest
SHA256 d1117beba038a5ec5699d6b5d1d42c9fdb9c1fca42ed55f2d3209589be0b974e
MD5 97aed8df3933ebdc9f6bc5552fa920ad
BLAKE2b-256 67b07fea3e537d6670aade1fd39978cc1999b396f0153becb7ecdac48121bf99

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywebtask-0.17.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: pywebtask-0.17.3-py3-none-any.whl
  • Upload date:
  • Size: 95.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 77db955188eb8e596ad71aae8ff58e125916f4f07faaa8c83be8a27ab2fb54a0
MD5 39b648ad0377babd3ff1f325151ad0f0
BLAKE2b-256 4759704cb646dc48ab783acb75af58cb749dab7b5dde9c6e4af8f80d1c89c13d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pywebtask-0.17.3-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