File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 5
5
import os
6
6
import json
7
7
from dotenv import load_dotenv
8
- from scrapegraphai .graphs import SmartScraperGraph
8
+ from scrapegraphai .graphs import ScriptCreatorGraph
9
9
from scrapegraphai .utils import prettify_exec_info
10
10
11
11
load_dotenv ()
28
28
# Create the SmartScraperGraph instance and run it
29
29
# ************************************************
30
30
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" ,
34
35
config = graph_config
35
36
)
36
37
You can’t perform that action at this time.
0 commit comments