import re


def _get_code(html):
    """ A client-internal method to get the authentication code.

    The client code is shown in the html. Parse it out of the html.

    """

    code, = re.findall('<code.*id="authorization_code">(.*)</code>', html)

    return code