how to get params from url in flask code example
Example 1: get arguments from url flask
from flask import request
@app.route(...)
def login():
username = request.args.get('username')
password = request.args.get('password')
Example 2: How can I get the named parameters from a URL using Flask?
from flask import request
@app.route('/my-route')
def my_route():
page = request.args.get('page', default = 1, type = int)
filter = request.args.get('filter', default = '*', type = str)