Skip to content

Python scraper based on AI

fixed variable name

EURAC\marperini72859d52b839
diff --git a/.gitignore b/.gitignore
index b09506ab..46f35144 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,4 +28,6 @@ venv/
*.sqlite
*.google-cookie
examples/graph_examples/ScrapeGraphAI_generated_graph
+examples/*.csv
+examples/*.json
main.py
diff --git a/examples/search_graph_example.py b/examples/search_graph_example.py
index 5d3a2270..e9bd7c59 100644
--- a/examples/search_graph_example.py
+++ b/examples/search_graph_example.py
@@ -20,12 +20,12 @@ graph_config = {
}
# Create the SmartScraperGraph instance
-smart_scraper_graph = SearchGraph(
+search_graph = SearchGraph(
prompt="List me all the regions of Italy.",
config=graph_config
)
-result = smart_scraper_graph.run()
+result = search_graph.run()
print(result)
# Save to json and csv