Skip to content

Python scraper based on AI

add paths

VinciGit003eacc6fbc372
diff --git a/scrapegraphai/graphs/json_scraper_graph.py b/scrapegraphai/graphs/json_scraper_graph.py
index 7f24da6d..456f5e56 100644
--- a/scrapegraphai/graphs/json_scraper_graph.py
+++ b/scrapegraphai/graphs/json_scraper_graph.py
@@ -30,7 +30,7 @@ class JsonScraperGraph(AbstractGraph):
Creates the graph of nodes representing the workflow for web scraping.
"""
fetch_node = FetchNode(
- input="url | local_dir",
+ input="json | json_dir",
output=["doc"],
)
parse_node = ParseNode(
diff --git a/scrapegraphai/graphs/xml_scraper_graph.py b/scrapegraphai/graphs/xml_scraper_graph.py
index 5b1e3282..07e407ce 100644
--- a/scrapegraphai/graphs/xml_scraper_graph.py
+++ b/scrapegraphai/graphs/xml_scraper_graph.py
@@ -30,7 +30,7 @@ class XmlScraperGraph(AbstractGraph):
Creates the graph of nodes representing the workflow for web scraping.
"""
fetch_node = FetchNode(
- input="url | local_dir",
+ input="xml | xml_dir",
output=["doc"],
)
parse_node = ParseNode(