Get a query argument by name from a request in Flask
from flask import request # here we want to get the value of user (i.e. ?user=value) user = request.args.get('user')