Skip to content

Python scraper based on AI

#710 - just a check added for the detailed logging

SwapnilSonker064ebfcdb4de
diff --git a/scrapegraphai/graphs/smart_scraper_graph.py b/scrapegraphai/graphs/smart_scraper_graph.py
index 404bdcd9..e032eadd 100644
--- a/scrapegraphai/graphs/smart_scraper_graph.py
+++ b/scrapegraphai/graphs/smart_scraper_graph.py
@@ -55,6 +55,9 @@ class SmartScraperGraph(AbstractGraph):
super().__init__(prompt, config, source, schema)
self.input_key = "url" if source.startswith("http") else "local_dir"
+
+ # for detailed logging of the SmartScraper API set it to True
+ self.verbose = config.get("verbose", False)
def _create_graph(self) -> BaseGraph:
"""