how i can parse all GET params from URL in flask? I tried use request.args.get, but it works with specific GET params (pre defined), but i need parse it all from my large URL (ex: http://site.ru/?a=1&b=2&c=3&some_string=string...)
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
If you use
request.args
it will provide a dictonary with key-value pairs of the GET parametersEx:
http://website.com/index?arg1=hello&arg2=world
The
request.args.get(key)
is a useful dictionary function that will returnNone
if the parameter is not set rather than raising aKeyError