Skip to content

Python scraper based on AI

refactoring of node names

Marco Vinciguerrac5a3f893f12c
diff --git a/scrapegraphai/nodes/conditional_node.py b/scrapegraphai/nodes/conditional_node.py
index aa72a4b1..4aabce5d 100644
--- a/scrapegraphai/nodes/conditional_node.py
+++ b/scrapegraphai/nodes/conditional_node.py
@@ -32,7 +32,6 @@ class ConditionalNode(BaseNode):
"""
Initializes an empty ConditionalNode.
"""
-
#super().__init__(node_name, "node", input, output, 2, node_config)
pass
diff --git a/scrapegraphai/nodes/fetch_screen_node.py b/scrapegraphai/nodes/fetch_screen_node.py
index 0bb71c37..1b605b86 100644
--- a/scrapegraphai/nodes/fetch_screen_node.py
+++ b/scrapegraphai/nodes/fetch_screen_node.py
@@ -16,7 +16,7 @@ class FetchScreenNode(BaseNode):
input: str,
output: List[str],
node_config: Optional[dict] = None,
- node_name: str = "FetchScreenNode",
+ node_name: str = "FetchScreen",
):
super().__init__(node_name, "node", input, output, 2, node_config)
self.url = node_config.get("link")
diff --git a/scrapegraphai/nodes/parse_node.py b/scrapegraphai/nodes/parse_node.py
index 1f919926..adc9d1b1 100644
--- a/scrapegraphai/nodes/parse_node.py
+++ b/scrapegraphai/nodes/parse_node.py
@@ -33,7 +33,7 @@ class ParseNode(BaseNode):
input: str,
output: List[str],
node_config: Optional[dict] = None,
- node_name: str = "Parse",
+ node_name: str = "ParseNode",
):
super().__init__(node_name, "node", input, output, 1, node_config)
diff --git a/scrapegraphai/nodes/search_link_node.py b/scrapegraphai/nodes/search_link_node.py
index 034599ea..ba089c2c 100644
--- a/scrapegraphai/nodes/search_link_node.py
+++ b/scrapegraphai/nodes/search_link_node.py
@@ -36,7 +36,7 @@ class SearchLinkNode(BaseNode):
input: str,
output: List[str],
node_config: Optional[dict] = None,
- node_name: str = "GenerateLinks",
+ node_name: str = "SearchLinks",
):
super().__init__(node_name, "node", input, output, 1, node_config)
diff --git a/scrapegraphai/nodes/search_node_with_context.py b/scrapegraphai/nodes/search_node_with_context.py
index 7343b64c..5a21010c 100644
--- a/scrapegraphai/nodes/search_node_with_context.py
+++ b/scrapegraphai/nodes/search_node_with_context.py
@@ -23,7 +23,7 @@ class SearchLinksWithContext(BaseNode):
input (str): Boolean expression defining the input keys needed from the state.
output (List[str]): List of output keys to be updated in the state.
node_config (dict): Additional configuration for the node.
- node_name (str): The unique identifier name for the node, defaulting to "GenerateAnswer".
+ node_name (str): The unique identifier name for the node, defaulting to "SearchLinksWithContext".
"""
def __init__(
@@ -31,7 +31,7 @@ class SearchLinksWithContext(BaseNode):
input: str,
output: List[str],
node_config: Optional[dict] = None,
- node_name: str = "GenerateAnswer",
+ node_name: str = "SearchLinksWithContext",
):
super().__init__(node_name, "node", input, output, 2, node_config)
self.llm_model = node_config["llm_model"]