def METHOD_NAME(session, url):
    for res in session.read(url):
        status = res.get('phase', 'error')
        percent = res.get('progress', None)
        detail = res.get('detail', repr(res)),
        if status == 'error':
            text = 'error!'
        else:
            text = '{0}: {1:3.0f}%'.format(status, percent)
    return text, status, detail