title: In Flask, what is "request.args" and how is it used?
body: <p>As a Flask beginner, I can't understand how <code>request.args</code> is used. I read somewhere that it is used to return values of query string (correct me if I'm wrong) and how many parameters <code>request.args.get()</code> takes.</p>
  <p>I know that when I have to store submitted form data, I can use <code>fname = request.form.get(&quot;firstname&quot;)</code>. Here, only one parameter is passed, whereas the code below takes two parameters.</p>
  <pre><code>@app.route(&quot;/&quot;)
  def home():
      cnx = db_connect()
      cur = cnx.cursor()
      output = []
  
      page = request.args.get('page', 1)
  
      try:
          page = int(page)
          skip = (page-1)*4
      except:
          abort(404)
     
      stmt_select = &quot;select * from posts limit %s, 4;&quot;
      values=[skip]
  
      cur.execute(stmt_select,values)
      x=cur.fetchall()
  
      for row in reversed(x):
          data = {
             &quot;uid&quot;:row[0],
             &quot;pid&quot;:row[1],
             &quot;subject&quot;:row[2],
             &quot;post_content&quot;:row[3],
             &quot;date&quot;:datetime.fromtimestamp(row[4]),
          }
          output.append(data)
      
      next = page + 1
      previous = page-1
      if previous&lt;1:
      previous=1
      return render_template(&quot;home.html&quot;, persons=output, next=next, previous=previous)
  </code></pre>
  <p>Please explain why it takes two parameters, and then what its use is.</p>