Flask https://flask.palletsprojects.com/en/1.1.x/ Memo when getting the GET parameter with
python
@app.route('/search')
def analyzer():
query = ""
if request.args.get('q') is not None:
query = request.args.get('q')
else:
query = "There are no parameters"
return query
http://localhost/search?q=クエリだよ
Try with
Recommended Posts