def get_page_and_url ( session , url ) : reply = get_reply ( session , url ) return reply . text , reply . url
python how to use session to access other urls from same page
Download an HTML page using the requests session and return the final URL after following redirects .
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