We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1c79d commit f2dffe5Copy full SHA for f2dffe5
scrapegraphai/nodes/fetch_node.py
@@ -86,13 +86,14 @@ def execute(self, state):
86
input_keys[0] == "json_dir"
87
or input_keys[0] == "xml_dir"
88
or input_keys[0] == "csv_dir"
89
+ or input_keys[0] == "pdf_dir"
90
):
91
compressed_document = [
92
Document(page_content=source, metadata={"source": "local_dir"})
93
]
94
state.update({self.output[0]: compressed_document})
95
return state
-
96
+
97
# handling for pdf
98
elif input_keys[0] == "pdf":
99
loader = PyPDFLoader(source)
@@ -108,7 +109,7 @@ def execute(self, state):
108
109
110
111
112
113
elif input_keys[0] == "json":
114
f = open(source)
115
0 commit comments