docs: def get_page_and_url(session, url):
      """
      Download an HTML page using the requests session and return
      the final URL after following redirects.
      """
      reply = get_reply(session, url)
      return reply.text, reply.url