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

Method run

scrapegraphai/graphs/xml_scraper_graph.py:87–98  ·  view source on GitHub ↗

Executes the web 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

85 )
86
87 def run(self) -> str:
88 """
89 Executes the web scraping process and returns the answer to the prompt.
90
91 Returns:
92 str: The answer to the prompt.
93 """
94
95 inputs = {"user_prompt": self.prompt, self.input_key: self.source}
96 self.final_state, self.execution_info = self.graph.execute(inputs)
97
98 return self.final_state.get("answer", "No answer found.")

Callers 6

test_scrape_xml_fileMethod · 0.95
test_scrape_xml_urlMethod · 0.95
test_xml_scraper_graphFunction · 0.95
test_scraping_pipelineFunction · 0.95

Calls 2

getMethod · 0.80
executeMethod · 0.45

Tested by 6

test_scrape_xml_fileMethod · 0.76
test_scrape_xml_urlMethod · 0.76
test_xml_scraper_graphFunction · 0.76
test_scraping_pipelineFunction · 0.76