From 09256f7b11a7a1c2aba01cf8de70401af1e86fe4 Mon Sep 17 00:00:00 2001 From: Marco Vinciguerra Date: Mon, 22 Jul 2024 16:15:38 +0200 Subject: [PATCH] fix: parse node --- examples/local_models/smart_scraper_ollama.py | 4 ++-- scrapegraphai/nodes/parse_node.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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: