docs/en/tools/web-scraping/hyperbrowserloadtool.mdx
HyperbrowserLoadToolThe HyperbrowserLoadTool enables web scraping and crawling using Hyperbrowser, a platform for running and scaling headless browsers. This tool allows you to scrape a single page or crawl an entire site, returning the content in properly formatted markdown or HTML.
Key Features:
To use this tool, you need to install the Hyperbrowser SDK:
uv add hyperbrowser
To effectively use the HyperbrowserLoadTool, follow these steps:
HYPERBROWSER_API_KEY environment variable or pass it directly to the tool constructor.The following example demonstrates how to initialize the tool and use it to scrape a website:
from crewai_tools import HyperbrowserLoadTool
from crewai import Agent
# Initialize the tool with your API key
tool = HyperbrowserLoadTool(api_key="your_api_key") # Or use environment variable
# Define an agent that uses the tool
@agent
def web_researcher(self) -> Agent:
'''
This agent uses the HyperbrowserLoadTool to scrape websites
and extract information.
'''
return Agent(
config=self.agents_config["web_researcher"],
tools=[tool]
)
The HyperbrowserLoadTool accepts the following parameters:
HYPERBROWSER_API_KEY environment variable.For detailed information on all supported parameters, visit:
The tool returns content in the following format:
The HyperbrowserLoadTool provides a powerful way to scrape and crawl websites, handling complex scenarios like anti-bot measures, CAPTCHAs, and more. By leveraging Hyperbrowser's platform, this tool enables agents to access and extract web content efficiently.