Skip to content

Commit 9eb40e1

Browse files
committed
Update script_generator_openai.py
1 parent fe3aa28 commit 9eb40e1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

examples/openai/script_generator_openai.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import os
66
import json
77
from dotenv import load_dotenv
8-
from scrapegraphai.graphs import SmartScraperGraph
8+
from scrapegraphai.graphs import ScriptCreatorGraph
99
from scrapegraphai.utils import prettify_exec_info
1010

1111
load_dotenv()
@@ -28,9 +28,10 @@
2828
# Create the SmartScraperGraph instance and run it
2929
# ************************************************
3030

31-
smart_scraper_graph = SmartScraperGraph(
32-
prompt="List me what does the company do, the name and a contact email.",
33-
source="https://scrapegraphai.com/",
31+
smart_scraper_graph = ScriptCreatorGraph(
32+
prompt="List me all the news with their description.",
33+
# also accepts a string with the already downloaded HTML code
34+
source="https://perinim.github.io/projects",
3435
config=graph_config
3536
)
3637

0 commit comments

Comments
 (0)