Skip to content

Python scraper based on AI

add info for gemini example

VinciGit003c90d2f4fee9
diff --git a/examples/gemini/smart_scraper_gemini.py b/examples/gemini/smart_scraper_gemini.py
index 772d283a..b3b25024 100644
--- a/examples/gemini/smart_scraper_gemini.py
+++ b/examples/gemini/smart_scraper_gemini.py
@@ -4,6 +4,7 @@ Basic example of scraping pipeline using SmartScraper
import os
from dotenv import load_dotenv
+from scrapegraphai.utils import prettify_exec_info
from scrapegraphai.graphs import SmartScraperGraph
load_dotenv()
@@ -34,3 +35,10 @@ smart_scraper_graph = SmartScraperGraph(
result = smart_scraper_graph.run()
print(result)
+
+# ************************************************
+# Get graph execution info
+# ************************************************
+
+graph_exec_info = smart_scraper_graph.get_execution_info()
+print(prettify_exec_info(graph_exec_info))