You can easily extend this to:
@app.route('/search', methods=['GET']) def search(): # Expected query param: ?q=some+text q = request.args.get('q', '') matches = find_matches_regex(q) # or find_matches(q, KEYWORDS) return jsonify( "query": q, "matched_keywords": list(matches), "has_match": bool(matches) ) You can easily extend this to: @app
If you're looking for verified platforms or resources, here are some tips: KEYWORDS) return jsonify( "query": q
"query": "adn622 and miu are verified", "matched_keywords": ["adn622", "miu", "verified"], "has_match": true You can easily extend this to: @app