title: Python: How to get multiple variables from a URL in Flask?
body: <p>I'm trying to get multiple arguments from a url in Flask. After reading <a href="https://stackoverflow.com/a/15182724/1650012">this SO answer</a> I thought I could do it like this:</p>
  
  <pre><code>@app.route('/api/v1/getQ/', methods=['GET'])
  def getQ(request):
      print request.args.get('a')
      print request.args.get('b')
      return "lalala"
  </code></pre>
  
  <p>But when I visit <code>/api/v1/getQ/a=1&amp;b=2</code>, I get a <code>TypeError: getQ() takes exactly 1 argument (0 given)</code>. I tried other urls, like <code>/api/v1/getQ/?a=1&amp;b=2</code> and <code>/api/v1/getQ?a=1&amp;b=2</code>, but to no avail.</p>
  
  <p>Does anybody know what I'm doing wrong here? All tips are welcome!</p>