Skip to content

Python scraper based on AI

fix: parse node

Marco Vinciguerra09256f7b11a7
diff --git a/examples/local_models/smart_scraper_ollama.py b/examples/local_models/smart_scraper_ollama.py
index 0b3fcbfc..c3d60559 100644
--- a/examples/local_models/smart_scraper_ollama.py
+++ b/examples/local_models/smart_scraper_ollama.py
@@ -28,8 +28,8 @@ graph_config = {
# ************************************************
smart_scraper_graph = SmartScraperGraph(
- prompt="List me all the titles",
- source="https://perinim.github.io/projects",
+ prompt="List me all the titles of the website",
+ source="https://sport.sky.it/nba?gr=www",
config=graph_config
)
diff --git a/scrapegraphai/nodes/parse_node.py b/scrapegraphai/nodes/parse_node.py
index 4cf040e6..b5418717 100644
--- a/scrapegraphai/nodes/parse_node.py
+++ b/scrapegraphai/nodes/parse_node.py
@@ -41,7 +41,7 @@ class ParseNode(BaseNode):
False if node_config is None else node_config.get("verbose", False)
)
self.parse_html = (
- True if node_config is None else node_config.get("parse_html", False)
+ True if node_config is None else node_config.get("parse_html", True)
)
def execute(self, state: dict) -> dict: