Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Merge branch 'pre/beta' of https://github.com/VinciGit00/Scrapegraph-ai into pre/beta
VinciGit0080053a235875
diff --cc scrapegraphai/nodes/search_internet_node.pyindex 48722a46,f38e16e4..e04faeca--- a/scrapegraphai/nodes/search_internet_node.py+++ b/scrapegraphai/nodes/search_internet_node.py@@@ -86,13 -85,13 +86,20 @@@ class SearchInternetNode(BaseNode)if self.verbose:print(f"Search Query: {search_query}")- answer = search_on_web(- query=search_query, max_results=self.max_results)-- answer = search_on_web(query=search_query, max_results=self.max_results)-- if len(answer) == 0:-- # raise an exception if no answer is found-- raise ValueError("Zero results found for the search query.")-- # Update the state with the generated answer-- state.update({self.output[0]: answer})-- return state++<< << << < HEAD++ answer = search_on_web(++ query=search_query, max_results=self.max_results)++== == == =++++ answer = search_on_web(query=search_query, max_results=self.max_results)++>>>>>> > 532adb639d58640bc89e8b162903b2ed97be9853++++ if len(answer) == 0:++ # raise an exception if no answer is found++ raise ValueError("Zero results found for the search query.")++++ # Update the state with the generated answer++ state.update({self.output[0]: answer})++ return state