Skip to content

Commit f891732

Browse files
committed
add xml_example
1 parent deb920a commit f891732

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

examples/openai/result.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/openai/scrape_xml_openai.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import os
66
from dotenv import load_dotenv
7-
from scrapegraphai.graphs import SmartScraperGraph
7+
from scrapegraphai.graphs import XmlScraperGraph
88
from scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info
99
load_dotenv()
1010

@@ -33,10 +33,10 @@
3333
}
3434

3535
# ************************************************
36-
# Create the SmartScraperGraph instance and run it
36+
# Create the XmlScraperGraph instance and run it
3737
# ************************************************
3838

39-
smart_scraper_graph = SmartScraperGraph(
39+
smart_scraper_graph = XmlScraperGraph(
4040
prompt="List me all the authors, title and genres of the books",
4141
source=text, # Pass the content of the file, not the file object
4242
config=graph_config

0 commit comments

Comments
 (0)