TimeWarp for BrowserGym
Hello, researcher! We provide instructions to set TimeWarp with BrowserGym.
Setup
Run the following command to install browsergym-timewarp:
pip install browsergym-timewarp
python -c "import nltk; nltk.download('punkt_tab')"
Set the OpenAI API Key:
export OPENAI_API_KEY="your-key" # For fuzzy evaluation
Usage
import gymnasium as gym
import browsergym.timewarp
env = gym.make("browsergym/timewarp.1")
obs, info = env.reset()
# Run your agent
env.close()
Adding Tasks
⚠️ To add tasks, install both browsergym and browsergym-timewarp in editable mode using pip install -e . ⚠️
- Add to
src/browsergym/timewarp/data/test.raw.json - Update
TASK_IDSintimewarp/config.py - Add to
browsergym/experiments/src/browsergym/experiments/benchmark/metadata/timewarp.csvin the original BrowserGym repo.
Sites: ["wiki"], ["webshop"], ["news"]
Placeholders: __WIKI__, __WEBSHOP__, __NEWS__
Citation
Don't forget to cite BrowserGym:
@article{
chezelles2025browsergym,
title={The BrowserGym Ecosystem for Web Agent Research},
author={Thibault Le Sellier de Chezelles and Maxime Gasse and Alexandre Lacoste and Massimo Caccia and Alexandre Drouin and L{\'e}o Boisvert and Megh Thakkar and Tom Marty and Rim Assouel and Sahar Omidi Shayegan and Lawrence Keunho Jang and Xing Han L{\`u} and Ori Yoran and Dehan Kong and Frank F. Xu and Siva Reddy and Graham Neubig and Quentin Cappart and Russ Salakhutdinov and Nicolas Chapados},
journal={Transactions on Machine Learning Research},
issn={2835-8856},
year={2025},
url={https://openreview.net/forum?id=5298fKGmv3},
note={Expert Certification}
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file browsergym_timewarp-0.2.0.tar.gz.
File metadata
- Download URL: browsergym_timewarp-0.2.0.tar.gz
- Upload date:
- Size: 235.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94d1bab7f186cf549b5aa6d30981c225575aabb9e48a1fae1689cd7a5e825757
|
|
| MD5 |
04e958783f3370b59f7027f8a1f2e6a9
|
|
| BLAKE2b-256 |
7de34526e4ca6ff3ec8af6c4632f6f11ec07690f62ae9d86b928558d5104211a
|
File details
Details for the file browsergym_timewarp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: browsergym_timewarp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 226.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00a11de06ec855ef95d44d2f38174ed3d2d969efdea7d7f815ab4c7777751b56
|
|
| MD5 |
ccd308576f7d30b7ee4a587e891d515f
|
|
| BLAKE2b-256 |
3baaac6bf9792c79ebd8c922d35df41e09c8b67a0ea0d2bb7da138e66f6e84a2
|