Python scraper based on AI
Python ai-crawlerai-scrapingai-searchcrawlerdata-extractionfirecrawl-alternativelarge-language-modelllmmarkdownragscrapingscraping-pythonweb-crawlerweb-crawlersweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
fix(asyncio): replaced deepcopy with copy due to serialization problems
Marco Perinidedc73304755
diff --git a/examples/openai/search_graph_openai.py b/examples/openai/search_graph_openai.pyindex ffff1cb5..7f40ebde 100644--- a/examples/openai/search_graph_openai.py+++ b/examples/openai/search_graph_openai.py@@ -28,7 +28,7 @@ graph_config = {# ************************************************search_graph = SearchGraph(- prompt="List me the best escursions near Trento",+ prompt="List me Chioggia's famous dishes",config=graph_config)diff --git a/scrapegraphai/nodes/graph_iterator_node.py b/scrapegraphai/nodes/graph_iterator_node.pyindex 4ed7ad8e..517dfe0c 100644--- a/scrapegraphai/nodes/graph_iterator_node.py+++ b/scrapegraphai/nodes/graph_iterator_node.py@@ -11,7 +11,7 @@ from tqdm.asyncio import tqdmfrom .base_node import BaseNode-_default_batchsize = 4+_default_batchsize = 2class GraphIteratorNode(BaseNode):@@ -118,7 +118,7 @@ class GraphIteratorNode(BaseNode):# creates a deepcopy of the graph instance for each endpointfor url in urls:- instance = copy.deepcopy(graph_instance)+ instance = copy.copy(graph_instance)instance.source = urlparticipants.append(instance)