

def _get_auth_token(self, email, password, source, service):
    url = 'https://www.google.com/accounts/ClientLogin'
    params = {
        'Email': email,
        'Passwd': password,
        'service': service,
        'accountType': 'HOSTED_OR_GOOGLE',
        'source': source,
    }
    req = urllib.request.Request(url, urllib.parse.urlencode(params).encode('utf8'))
    return re.findall(b'Auth=(.*)', urllib.request.urlopen(req).read())[0]

dataset/ETHPy150Open codefordc/ancfinder/scripts/update_anc_database.py GoogleDocsClient._get_auth_token/original