# Spider Scraper Output Parsing Error

**URL:** <https://community.crewai.com/t/spider-scraper-output-parsing-error/1613>\
**Category:** CrewAI Community Support\
**Tags:** tools\_issues\
**Created:** [November 25, 2024, 4:28pm UTC](https://community.crewai.com/t/spider-scraper-output-parsing-error/1613 "2024-11-25T16:28:24Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Milan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/milan/32/1185_2.png) [@Milan](https://community.crewai.com/u/Milan)\
**Post date:** [November 25, 2024, 5:44pm UTC](https://community.crewai.com/t/spider-scraper-output-parsing-error/1613/3 "2024-11-25T17:44:44Z")

</div>

Hi, this is the same answer as in my other topic: [Spider Web Scraper](https://community.crewai.com/t/spider-web-scraper/1612)

* * *

Yes for sure.

I use a yaml file to define an agent. The defintion is in German but I translated it for you,  
topic\_researcher:  
role: \>  
…  
goal: |  
…  
Suche im Internet:  
Nutz fuer die Suche im Internet das Tool “SerperDevTool”. Waehle danach die passendes Suchergebnisse aus und Crawle deren URLs mit dem Tool “SpiderTool”.

```
Translation:
Search on the Internet:
Use the tool "SerperDevTool" for searching on the Internet. Then select the appropriate search results and crawl their URLs with the tool "SpiderTool".

```

backstory: |  
…  
llm: openai/gpt-4o

* * *

I use a yaml file to define the task:

research\_task:  
description: |  
…

```
1. **Initiale Informationssuche:**
   - **Tool:** Verwende das Tool **SerperDevTool** , um im Internet nach relevanten Informationen zum Thema "{topic}" zu suchen.
   - **Suchbegriffe:** Nutze kurze und klar verständliche Suchbegriffe, die der typischen Suchweise von Menschen im Internet entsprechen.
   - **Auswahl der Ergebnisse:** Wähle die am besten passenden und relevantesten Suchergebnisse aus und notiere deren URLs.

2. **Inhaltsanalyse:**
   - **Tool:** Verwende das Tool **Spider scrape & crawl tool** , um die ausgewählten URLs zu scrapen und deren Inhalte vollständig zu extrahieren. WICHTIG: Halte dich EXAKT an die Anleitung des Tools und die Formatvorgaben!
   - - **Datenextraktion:** Sammle alle relevanten Informationen aus den gescrapten Webseiten.
 

Translation:
1. **Initial information search:**
   - **Tool:** Use the tool **SerperDevTool** to search the internet for relevant information on the topic "{topic}".
   - **Keywords:** Use short and easily understandable keywords that correspond to the typical search behavior of people on the internet.
   - **Selection of results:** Choose the most suitable and relevant search results and note their URLs.

2. **Content analysis:**
   - **Tool:** Use the tool **Spider scrape & crawl tool** to scrape the selected URLs and extract their content completely. IMPORTANT: Follow the instructions of the tool and the formatting guidelines EXACTLY!
   - **Data extraction:** Collect all relevant information from the scraped websites.

```

expected\_output: |  
…  
agent: topic\_researcher

* * *

In the crew file ill give the tools to the agent:

@agent  
def topic\_researcher(self) → Agent:  
return Agent(  
config=self.agents\_config[‘topic\_researcher’],  
# tools=[MyCustomTool()], # Example of custom tool, loaded on the beginning of file  
verbose=True,  
tools=[SerperDevTool(), SpiderTool()]  
)

* * *

I hope this is what you were asking for.

Thank you very much for your help.

Best  
Milan

---

_[View the full topic](https://community.crewai.com/t/spider-scraper-output-parsing-error/1613)._
