MCPcopy
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / run

Method run

scrapegraphai/graphs/search_link_graph.py:92–103  ·  view source on GitHub ↗

Executes the scraping process and returns the answer to the prompt. Returns: str: The answer to the prompt.

(self)

Source from the content-addressed store, hash-verified

90 )
91
92 def run(self) -> str:
93 """
94 Executes the scraping process and returns the answer to the prompt.
95
96 Returns:
97 str: The answer to the prompt.
98 """
99
100 inputs = {"user_prompt": self.prompt, self.input_key: self.source}
101 self.final_state, self.execution_info = self.graph.execute(inputs)
102
103 return self.final_state.get("parsed_doc", "No answer found.")

Callers 1

Calls 2

getMethod · 0.80
executeMethod · 0.45

Tested by 1