MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / load_page

Function load_page

bmtools/tools/bing_search/api.py:173–179  ·  view source on GitHub ↗
(idx : int, data: SessionData = data)

Source from the content-addressed store, hash-verified

171 return text
172
173 def load_page(idx : int, data: SessionData = data):
174 top = data.content[-1].data["webPages"]["value"]
175 ok, content = bing_api.load_page(top[idx]['url'])
176 if ok:
177 return top[idx]['url'], content
178 else:
179 return " ", "Timeout for loading this page, Please try to load another one or search again."
180
181 return tool

Callers 1

load_page_indexFunction · 0.85

Calls 1

load_pageMethod · 0.45

Tested by

no test coverage detected