def METHOD_NAME(lichess_usernames, priority=0, max_retries=5, timeout=1800):
    url = '%s/lichessapi/api/users?with_moves=1&priority=%s&max_retries=%s' % (
        settings.API_WORKER_HOST, priority, max_retries)
    while len(lichess_usernames) > 0:
        batch = lichess_usernames[:300]
        result = _apicall_with_error_parsing(url, timeout, post_data=','.join(batch))
        for meta in json.loads(result):
            yield meta
        lichess_usernames = lichess_usernames[300:]