Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

66 changes: 0 additions & 66 deletions docs/guides/playwright_crawler_stagehand.mdx

This file was deleted.

6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ dependencies = [
]

[project.optional-dependencies]
all = ["crawlee[adaptive-crawler,beautifulsoup,cli,curl-impersonate,httpx,parsel,playwright,otel,sql_sqlite,sql_postgres,redis]"]
all = ["crawlee[adaptive-crawler,beautifulsoup,cli,curl-impersonate,httpx,parsel,playwright,otel,sql_sqlite,sql_postgres,stagehand,redis]"]
adaptive-crawler = [
"jaro-winkler>=2.0.3",
"playwright>=1.27.0",
Expand All @@ -77,6 +77,10 @@ sql_postgres = [
"sqlalchemy[asyncio]>=2.0.0,<3.0.0",
"asyncpg>=0.24.0"
]
stagehand = [
"stagehand>=3.19.0",
"playwright>=1.27.0",
]
sql_sqlite = [
"sqlalchemy[asyncio]>=2.0.0,<3.0.0",
"aiosqlite>=0.21.0",
Expand Down
11 changes: 11 additions & 0 deletions src/crawlee/browsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
with _try_import(__name__, 'PlaywrightPersistentBrowser'):
from ._playwright_browser import PlaywrightPersistentBrowser

with _try_import(__name__, 'StagehandBrowserController'):
from ._stagehand_browser_controller import StagehandBrowserController
with _try_import(__name__, 'StagehandBrowserPlugin'):
from ._stagehand_browser_plugin import StagehandBrowserPlugin
with _try_import(__name__, 'StagehandOptions', 'StagehandPage'):
from ._stagehand_types import StagehandOptions, StagehandPage


__all__ = [
'BrowserPool',
Expand All @@ -25,4 +32,8 @@
'PlaywrightBrowserController',
'PlaywrightBrowserPlugin',
'PlaywrightPersistentBrowser',
'StagehandBrowserController',
'StagehandBrowserPlugin',
'StagehandOptions',
'StagehandPage',
]
Loading
Loading