In Flask, How do I extract parameters from a URL? How can I extract named parameters from a URL using flask and python?
When the user accesses this URL running on my flask app, I want the web service to be able to handle the parameters specified after the question mark:
request.args to get parsed contents of query string:
from flask import request @app.route('/your-path', methods=['GET']) def login(): url_domain = request.args.get('url')
Latest posts by admin (see all)
- Install and Running Supervisord in virtualenv python 2.7 - January 24, 2019
- Urgent fix: Briefly unavailable for scheduled maintenance. Check back in a minute. - January 22, 2019
- Change WordPress post date format to time ago - January 21, 2019