MCPcopy
hub / github.com/shobrook/rebound / search_stackoverflow

Function search_stackoverflow

rebound/rebound.py:287–296  ·  view source on GitHub ↗

Wrapper function for get_search_results.

(query)

Source from the content-addressed store, hash-verified

285
286
287def search_stackoverflow(query):
288 """Wrapper function for get_search_results."""
289 soup = souper(SO_URL + "/search?pagesize=50&q=%s" % query.replace(' ', '+'))
290
291 # TODO: Randomize the user agent
292
293 if soup == None:
294 return (None, True)
295 else:
296 return (get_search_results(soup), False)
297
298
299def get_question_and_answers(url):

Callers 1

mainFunction · 0.85

Calls 2

souperFunction · 0.85
get_search_resultsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…