Skip to content

Python scraper based on AI

Minor typo fix for clarity

Eric Page67d8fec6b3ff
diff --git a/examples/openai/script_generator_openai.py b/examples/openai/script_generator_openai.py
index e731f852..78750a37 100644
--- a/examples/openai/script_generator_openai.py
+++ b/examples/openai/script_generator_openai.py
@@ -27,19 +27,19 @@ graph_config = {
# Create the ScriptCreatorGraph instance and run it
# ************************************************
-smart_scraper_graph = ScriptCreatorGraph(
- prompt="List me all the news with their description.",
+script_creator_graph = ScriptCreatorGraph(
+ prompt="List me all the projects with their description.",
# also accepts a string with the already downloaded HTML code
source="https://perinim.github.io/projects",
config=graph_config
)
-result = smart_scraper_graph.run()
+result = script_creator_graph.run()
print(result)
# ************************************************
# Get graph execution info
# ************************************************
-graph_exec_info = smart_scraper_graph.get_execution_info()
+graph_exec_info = script_creator_graph.get_execution_info()
print(prettify_exec_info(graph_exec_info))