Skip to content

Commit 57337a0

Browse files
fix: Removed link_urls and img_ulrs from FetchNode output
1 parent 66a3b6d commit 57337a0

20 files changed

+20
-20
lines changed

examples/anthropic/custom_graph_haiku.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
fetch_node = FetchNode(
4242
input="url | local_dir",
43-
output=["doc", "link_urls", "img_urls"],
43+
output=["doc"],
4444
node_config={
4545
"verbose": True,
4646
"headless": True,

examples/bedrock/custom_graph_bedrock.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
fetch_node = FetchNode(
5757
input="url | local_dir",
58-
output=["doc", "link_urls", "img_urls"],
58+
output=["doc"],
5959
node_config={
6060
"verbose": True,
6161
"headless": True,

examples/ernie/custom_graph_ernie.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
fetch_node = FetchNode(
4545
input="url | local_dir",
46-
output=["doc", "link_urls", "img_urls"],
46+
output=["doc"],
4747
node_config={
4848
"verbose": True,
4949
"headless": True,

examples/fireworks/custom_graph_fireworks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
fetch_node = FetchNode(
4545
input="url | local_dir",
46-
output=["doc", "link_urls", "img_urls"],
46+
output=["doc"],
4747
node_config={
4848
"verbose": True,
4949
"headless": True,

examples/groq/custom_graph_groq.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
fetch_node = FetchNode(
4545
input="url | local_dir",
46-
output=["doc", "link_urls", "img_urls"],
46+
output=["doc"],
4747
node_config={
4848
"verbose": True,
4949
"headless": True,

examples/huggingfacehub/custom_graph_huggingfacehub.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
fetch_node = FetchNode(
5757
input="url | local_dir",
58-
output=["doc", "link_urls", "img_urls"],
58+
output=["doc"],
5959
node_config={
6060
"verbose": True,
6161
"headless": True,

examples/local_models/custom_graph_ollama.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
fetch_node = FetchNode(
4646
input="url | local_dir",
47-
output=["doc", "link_urls", "img_urls"],
47+
output=["doc"],
4848
node_config={
4949
"verbose": True,
5050
"headless": True,

examples/mistral/custom_graph_mistral.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
fetch_node = FetchNode(
4444
input="url | local_dir",
45-
output=["doc", "link_urls", "img_urls"],
45+
output=["doc"],
4646
node_config={
4747
"verbose": True,
4848
"headless": True,

examples/mixed_models/custom_graph_groq_openai.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
fetch_node = FetchNode(
5353
input="url | local_dir",
54-
output=["doc", "link_urls", "img_urls"],
54+
output=["doc"],
5555
node_config={
5656
"verbose": True,
5757
"headless": True,

examples/nemotron/custom_graph_nemotron.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
fetch_node = FetchNode(
4444
input="url | local_dir",
45-
output=["doc", "link_urls", "img_urls"],
45+
output=["doc"],
4646
node_config={
4747
"verbose": True,
4848
"headless": True,

examples/oneapi/custom_graph_oneapi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
fetch_node = FetchNode(
4040
input="url | local_dir",
41-
output=["doc", "link_urls", "img_urls"],
41+
output=["doc"],
4242
node_config={
4343
"verbose": True,
4444
"headless": True,

examples/openai/custom_graph_openai.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
fetch_node = FetchNode(
4545
input="url | local_dir",
46-
output=["doc", "link_urls", "img_urls"],
46+
output=["doc"],
4747
node_config={
4848
"verbose": True,
4949
"headless": True,

scrapegraphai/graphs/deep_scraper_graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def _create_repeated_graph(self) -> BaseGraph:
6969
"""
7070
fetch_node = FetchNode(
7171
input="url | local_dir",
72-
output=["doc", "link_urls", "img_urls"]
72+
output=["doc"]
7373
)
7474
parse_node = ParseNode(
7575
input="doc",

scrapegraphai/graphs/json_scraper_graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def _create_graph(self) -> BaseGraph:
5656

5757
fetch_node = FetchNode(
5858
input="json | json_dir",
59-
output=["doc", "link_urls", "img_urls"],
59+
output=["doc"],
6060
)
6161

6262
generate_answer_node = GenerateAnswerNode(

scrapegraphai/graphs/script_creator_graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _create_graph(self) -> BaseGraph:
6262

6363
fetch_node = FetchNode(
6464
input="url | local_dir",
65-
output=["doc", "link_urls", "img_urls"],
65+
output=["doc"],
6666
node_config={
6767
"llm_model": self.llm_model,
6868
"loader_kwargs": self.config.get("loader_kwargs", {}),

scrapegraphai/graphs/search_link_graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _create_graph(self) -> BaseGraph:
5252

5353
fetch_node = FetchNode(
5454
input="url| local_dir",
55-
output=["doc", "link_urls", "img_urls"],
55+
output=["doc"],
5656
node_config={
5757
"llm_model": self.llm_model,
5858
"force": self.config.get("force", False),

scrapegraphai/graphs/smart_scraper_graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def _create_graph(self) -> BaseGraph:
6161
"""
6262
fetch_node = FetchNode(
6363
input="url| local_dir",
64-
output=["doc", "link_urls", "img_urls"],
64+
output=["doc"],
6565
node_config={
6666
"llm_model": self.llm_model,
6767
"force": self.config.get("force", False),

scrapegraphai/graphs/speech_graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _create_graph(self) -> BaseGraph:
6262

6363
fetch_node = FetchNode(
6464
input="url | local_dir",
65-
output=["doc", "link_urls", "img_urls"]
65+
output=["doc"]
6666
)
6767
parse_node = ParseNode(
6868
input="doc",

scrapegraphai/graphs/xml_scraper_graph.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def _create_graph(self) -> BaseGraph:
6060

6161
fetch_node = FetchNode(
6262
input="xml | xml_dir",
63-
output=["doc", "link_urls", "img_urls"]
63+
output=["doc"]
6464
)
6565

6666
generate_answer_node = GenerateAnswerNode(

tests/graphs/abstract_graph_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, prompt: str, config: dict):
2222
def _create_graph(self) -> BaseGraph:
2323
fetch_node = FetchNode(
2424
input="url| local_dir",
25-
output=["doc", "link_urls", "img_urls"],
25+
output=["doc"],
2626
node_config={
2727
"llm_model": self.llm_model,
2828
"force": self.config.get("force", False),

0 commit comments

Comments
 (0)