# SeleniumScrapingTool ## Description This tool is designed for efficient web scraping, enabling users to extract content from web pages. It supports targeted scraping by allowing the specification of a CSS selector for desired elements. The flexibility of the tool enables it to be used on any website URL provided by the user, making it a versatile tool for various web scraping needs. ## Installation Install the crewai_tools package ``` pip install 'crewai[tools]' ``` ## Example ```python from crewai_tools import SeleniumScrapingTool # Example 1: Scrape any website it finds during its execution tool = SeleniumScrapingTool() # Example 2: Scrape the entire webpage tool = SeleniumScrapingTool(website_url='https://example.com') # Example 3: Scrape a specific CSS element from the webpage tool = SeleniumScrapingTool(website_url='https://example.com', css_element='.main-content') # Example 4: Scrape using optional parameters for customized scraping tool = SeleniumScrapingTool(website_url='https://example.com', css_element='.main-content', cookie={'name': 'user', 'value': 'John Doe'}) # Example 5: Scrape content in HTML format tool = SeleniumScrapingTool(website_url='https://example.com', return_html=True) result = tool._run() # Returns HTML content like: ['