MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / run

Method run

scrapegraphai/graphs/csv_scraper_graph.py:95–103  ·  view source on GitHub ↗

Executes the web scraping process and returns the answer to the prompt.

(self)

Source from the content-addressed store, hash-verified

93 )
94
95 def run(self) -> str:
96 """
97 Executes the web scraping process and returns 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("answer", "No answer found.")

Callers 2

test_scrape_csv_fileMethod · 0.95
test_scrape_csv_urlMethod · 0.95

Calls 2

getMethod · 0.80
executeMethod · 0.45

Tested by 2

test_scrape_csv_fileMethod · 0.76
test_scrape_csv_urlMethod · 0.76