What is @crawlee/stagehand?
masterThe @crawlee/stagehand package provides AI-powered web crawling by integrating Stagehand for natural language browser automation. It is designed for websites with complex or frequently changing layouts where traditional CSS selectors are difficult to maintain.
Key capabilities include:
page.act(): Perform actions using plain English commands.page.extract(): Retrieve structured data using Zod schemas.page.observe(): Discover available actions on a page.
Note: If the target website has a stable structure, use PlaywrightCrawler instead, as it is faster and does not require AI API keys. StagehandCrawler extends BrowserCrawler and supports standard Crawlee features like request queues, proxy rotation, autoscaling, and browser fingerprinting.