def bing_search(): search_query = request.args.get('q') try: bing_results = bing(search_query) except: bing_results = ["No Results Found"] return jsonify({"results": bing_results})
def search(): search_query = request.args.get('q') try: google_results = google(search_query) except: google_results = ["No Results Found"] try: yahoo_results = yahoo(search_query) except: yahoo_results = ["No Results Found"] try: bing_results = bing(search_query) except: bing_results = ["No Results Found"] return jsonify({"results": google_results + yahoo_results + bing_results})