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

Method run

scrapegraphai/graphs/search_graph.py:103–118  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

101 )
102
103 def run(self) -> str:
104 """
105 Executes the web scraping and searching process.
106
107 Returns:
108 str: The answer to the prompt.
109 """
110
111 inputs = {"user_prompt": self.prompt}
112 self.final_state, self.execution_info = self.graph.execute(inputs)
113
114 # Store the URLs after execution
115 if "urls" in self.final_state:
116 self.considered_urls = self.final_state["urls"]
117
118 return self.final_state.get("answer", "No answer found.")
119
120 def get_considered_urls(self) -> List[str]:
121 """

Callers 5

test_search_graphFunction · 0.95

Calls 2

getMethod · 0.80
executeMethod · 0.45

Tested by 5

test_search_graphFunction · 0.76