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 55import os
66import json
77from dotenv import load_dotenv
8- from scrapegraphai .graphs import SmartScraperGraph
8+ from scrapegraphai .graphs import ScriptCreatorGraph
99from scrapegraphai .utils import prettify_exec_info
1010
1111load_dotenv ()
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
You can’t perform that action at this time.
0 commit comments