Skip to main content

LLM-powered web automation library with autonomous agents and natural language selectors

Project description

webtask

PyPI version Tests License: MIT

LLM-powered web automation with autonomous agents and natural language selectors.

📚 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 GeminiLLM

wt = Webtask(headless=False)
llm = GeminiLLM.create(model="gemini-2.5-flash")
agent = await wt.create_agent(llm=llm)

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

Direct control - Natural language selectors, you control the flow:

await agent.navigate("https://example.com")
search = await agent.select("search box")
await search.fill("cats")
button = await agent.select("search button")
await button.click()

No CSS selectors. No XPath. Just describe what you want.


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.15.0.tar.gz (56.3 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.15.0-py3-none-any.whl (89.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pywebtask-0.15.0.tar.gz
Algorithm Hash digest
SHA256 98f45fe579a79d40d453fb36ba92e1cd7fdddcf42b2acde4197762a1e2da95bf
MD5 69aa5d8f1c050bb3d68091e6e3ff57ac
BLAKE2b-256 70e77f08d5b2938e02e0413becc8dccaf973655a114d5e100133c58f825833b6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: pywebtask-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 89.2 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.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4293d3874e8cf63a38947cfd4e32c5ac9acff4c09a7aacaa2c666d0c19d8a44
MD5 9e704845a6814a4ecc1f64a0ae03c8a5
BLAKE2b-256 80b9c200d9101f7fb35a19e479f1e2ae9da0ede4b2ab5f6578b120bcf0be6995

See more details on using hashes here.

Provenance

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