spider_agent = Agent( name="WebSpider", role="Web Scraping Specialist", goal="Extract and analyze web content efficiently.", backstory="Expert in web scraping and content extraction.", tools=[scrape_page, extract_links, crawl, extract_text], self_reflect=False)
4
Define Task
Define the scraping task:
Copy
scraping_task = Task( description="Scrape product information from an e-commerce website.", expected_output="Structured product data with prices and descriptions.", agent=spider_agent, name="product_scraping")