mirror of
https://github.com/VinciGit00/Scrapegraph-ai.git
synced 2026-07-18 21:00:31 +08:00
feat: update parse node
This commit is contained in:
parent
2c0b4591ae
commit
8cf96857a0
@ -78,7 +78,6 @@ class ParseNode(BaseNode):
|
|||||||
self.logger.info(f"--- Executing {self.node_name} Node ---")
|
self.logger.info(f"--- Executing {self.node_name} Node ---")
|
||||||
|
|
||||||
input_keys = self.get_input_keys(state)
|
input_keys = self.get_input_keys(state)
|
||||||
|
|
||||||
input_data = [state[key] for key in input_keys]
|
input_data = [state[key] for key in input_keys]
|
||||||
docs_transformed = input_data[0]
|
docs_transformed = input_data[0]
|
||||||
source = input_data[1] if self.parse_urls else None
|
source = input_data[1] if self.parse_urls else None
|
||||||
@ -121,6 +120,9 @@ class ParseNode(BaseNode):
|
|||||||
)
|
)
|
||||||
|
|
||||||
state.update({self.output[0]: chunks})
|
state.update({self.output[0]: chunks})
|
||||||
|
state.update({"parsed_doc": chunks})
|
||||||
|
state.update({"content": chunks})
|
||||||
|
|
||||||
if self.parse_urls:
|
if self.parse_urls:
|
||||||
state.update({self.output[1]: link_urls})
|
state.update({self.output[1]: link_urls})
|
||||||
state.update({self.output[2]: img_urls})
|
state.update({self.output[2]: img_urls})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user