Appearance
Install
Step 1 - Install the Python packages
bash
pip install langchain-community playwrightlangchain-community ships the PlayWrightBrowserToolkit class and all seven browser tools. playwright is the Microsoft Playwright Python binding (version >=1.28.0,<2.0.0 is required by langchain-community).
Step 2 - Install Playwright browsers
After the pip install, download the browser binaries. Chromium is sufficient for most use cases:
bash
playwright install chromiumTo install all supported browsers (Chromium, Firefox, WebKit):
bash
playwright installOptional - install system dependencies (Linux / CI)
On headless Linux servers the browsers need OS-level libraries. Install them with:
bash
playwright install-depsFull one-liner for CI
bash
pip install langchain-community playwright && playwright install chromiumDependency matrix
| Requirement | Version pin |
|---|---|
| Python | 3.9 or higher |
| playwright | >=1.28.0, <2.0.0 |
| langchain-core | required (pulled in transitively) |
| langchain-community | latest stable (e.g. 0.3.x) |