code: def get_page(session,
               url,
               json=False,
               post=False,
               data=None,
               headers=None,
               quiet=False,
               **kwargs):
      
      url = url.format(**kwargs)
      reply = get_reply(session, url, post=post, data=data, headers=headers,
                        quiet=quiet)
      return reply.json() if json else reply.text
docs: Download an HTML page using the requests session.
  
      @param session: Requests session.
      @type session: requests.Session
  
      @param url: URL pattern with optional keywords to format.
      @type url: str
  
      @param post: Flag that indicates whether POST request should be sent.
      @type post: bool
  
      @param data: Payload data that is sent with request (in request body).
      @type data: object
  
      @param headers: Additional headers to send with request.
      @type headers: dict
  
      @return: Response body.
      @rtype: str