Skip to content

Python scraper based on AI

fix: import error

Marco Vinciguerra37b6ba08ae99
diff --git a/pyproject.toml b/pyproject.toml
index 1874b877..d4820abc 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -30,7 +30,7 @@ dependencies = [
"undetected-playwright>=0.3.0",
"google>=3.0.0",
"langchain-ollama>=0.1.3",
-
+ "simpleeval>=1.0.0",
"semchunk==2.2.0",
"transformers==4.44.2",
"qdrant-client>=1.11.3",
diff --git a/requirements-dev.lock b/requirements-dev.lock
index 3423cef0..b33667db 100644
--- a/requirements-dev.lock
+++ b/requirements-dev.lock
@@ -445,6 +445,8 @@ setuptools==75.1.0
# via grpcio-tools
sf-hamilton==1.73.1
# via burr
+simpleeval==1.0.0
+ # via scrapegraphai
six==1.16.0
# via python-dateutil
smmap==5.0.1
diff --git a/requirements.lock b/requirements.lock
index 8949648a..8b2b7244 100644
--- a/requirements.lock
+++ b/requirements.lock
@@ -328,6 +328,8 @@ sentencepiece==0.2.0
# via mistral-common
setuptools==75.1.0
# via grpcio-tools
+simpleeval==1.0.0
+ # via scrapegraphai
six==1.16.0
# via python-dateutil
sniffio==1.3.1
diff --git a/scrapegraphai/graphs/script_creator_graph.py b/scrapegraphai/graphs/script_creator_graph.py
index f6a884a1..6f158403 100644
--- a/scrapegraphai/graphs/script_creator_graph.py
+++ b/scrapegraphai/graphs/script_creator_graph.py
@@ -8,7 +8,8 @@ from .abstract_graph import AbstractGraph
from ..nodes import (
FetchNode,
ParseNode,
- GenerateScraperNode
+ GenerateScraperNode,
+ ConditionalNode
)
class ScriptCreatorGraph(AbstractGraph):
diff --git a/scrapegraphai/graphs/smart_scraper_multi_concat_graph.py b/scrapegraphai/graphs/smart_scraper_multi_concat_graph.py
index cc1a7003..0bd84a55 100644
--- a/scrapegraphai/graphs/smart_scraper_multi_concat_graph.py
+++ b/scrapegraphai/graphs/smart_scraper_multi_concat_graph.py
@@ -15,7 +15,7 @@ from ..nodes import (
)
from ..utils.copy import safe_deepcopy
-class SmartScraperMultiCondGraph(AbstractGraph):
+class SmartScraperMultiConcatGraph(AbstractGraph):
"""
SmartScraperMultiConditionalGraph is a scraping pipeline that scrapes a
list of URLs and generates answers to a given prompt.