Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/praveen-palanisamy/playwrightgym
PlaywrightGym - Train RL Agents for Web tasks
https://github.com/praveen-palanisamy/playwrightgym
playwright reinforcement-learning-environments rl-gym
Last synced: 9 days ago
JSON representation
PlaywrightGym - Train RL Agents for Web tasks
- Host: GitHub
- URL: https://github.com/praveen-palanisamy/playwrightgym
- Owner: praveen-palanisamy
- Created: 2021-03-08T05:49:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-27T21:10:19.000Z (over 3 years ago)
- Last Synced: 2024-10-07T08:07:59.475Z (about 1 month ago)
- Topics: playwright, reinforcement-learning-environments, rl-gym
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PlaywrightGym - Train RL Agents for Web tasks
Web-Browser-based learning environments for Deep Reinforcement Learning.
## Usage
```python
import gym
import playwrightgym
env = gym.make("LoginFormVisual-v0")
```## Examples
- [examples/demonstrator.py](https://github.com/praveen-palanisamy/playwrightgym/examples/demonstrator.py): Starter class to get human/manual demonstrations
- [examples/gather_demonstrations.py](https://github.com/praveen-palanisamy/playwrightgym/examples/gather_demonstrations.py): Starter script to gather human/manual demonstrations and store in RLLib-compatible file format for offline RL## Dev Setup
1. Install [python-poetry](https://python-poetry.org/): `curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -`
1. Clone and `cd` to this projects: `git clone https://github.com/praveen-palanisamy/playwrightgym && cd playwrightgym`
1. Activate python venv: `poetry shell`
1. Install dependencies and `playwrightgym` in editable mode: `poetry install`
1. Install browsers for playwright: `playwright install`
1. Ready!