lib/crewai-tools/src/crewai_tools/tools/brightdata_tool/README.md
A comprehensive suite of CrewAI tools that leverage Bright Data's powerful infrastructure for web scraping, data extraction, and search operations. These tools provide three distinct capabilities:
To incorporate these tools into your project, follow the installation instructions below:
pip install crewai[tools] aiohttp requests
from crewai_tools import BrightDataDatasetTool
# Initialize with specific dataset and URL
tool = BrightDataDatasetTool(
dataset_type="amazon_product",
url="https://www.amazon.com/dp/B08QB1QMJ5/"
)
result = tool.run()
from crewai_tools import BrightDataSearchTool
# Initialize with search query
tool = BrightDataSearchTool(
query="latest AI trends 2025",
search_engine="google",
country="us"
)
result = tool.run()
from crewai_tools import BrightDataWebUnlockerTool
# Initialize with target URL
tool = BrightDataWebUnlockerTool(
url="https://example.com",
data_format="markdown"
)
result = tool.run()
To effectively use the BrightData Tools, follow these steps:
Package Installation: Confirm that the crewai[tools] package is installed in your Python environment.
API Key Acquisition: Register for a Bright Data account at https://brightdata.com/ and obtain your API credentials from your account settings.
Environment Configuration: Set up the required environment variables:
export BRIGHT_DATA_API_KEY="your_api_key_here"
export BRIGHT_DATA_ZONE="your_zone_here"
Tool Selection: Choose the appropriate tool based on your needs:
By integrating BrightData Tools into your CrewAI agents, you gain access to enterprise-grade web scraping and data extraction capabilities. These tools handle complex challenges like bot protection, geo-restrictions, and data parsing, allowing you to focus on building your applications rather than managing scraping infrastructure.