def get_schedule(self, date=None, silent=False):
    load_spinner = None
    if (not silent):
        load_spinner = yaspin(text='Загрузка...')
        load_spinner.text = '[Получение дневника из журнала...]'
    if (date is None):
        date = '20191118-20191124'
    diary = rq.get((API_URL + 'getschedule'), params={'devkey': DEVKEY, 'vendor': VENDOR, 'out_format': 'json', 'student': self.student_id, 'auth_token': self.token, 'days': date, 'rings': 'true'}).json()['response']
    if (diary['error'] is not None):
        if (not silent):
            load_spinner.text = ''
            load_spinner.fail(stylize(('Ошибка получения расписания: ' + diary['error']), fg('red')))
            raise LookupError(diary['error'])
    schedule = diary['result']['students'][str(self.student_id)]
    if (not silent):
        load_spinner.text = ''
        load_spinner.ok(stylize('[Расписание успешно получено!] ', fg('green')))
    return schedule
def get_schedule(self, date=None, silent=False):
    load_spinner = None
    if (not silent):
        load_spinner = yaspin(text='Загрузка...')
        load_spinner.text = '[Получение дневника из журнала...]'
    if (date is None):
        date = '20191118-20191124'
    diary = rq.get((API_URL + 'getschedule'), params={'devkey': DEVKEY, 'vendor': VENDOR, 'out_format': 'json', 'student': self.student_id, 'auth_token': self.token, 'days': date, 'rings': 'true'}).json()['response']
    if (diary['error'] is not None):
        if (not silent):
            load_spinner.text = 
            load_spinner.fail(stylize(('Ошибка получения расписания: ' + diary['error']), fg('red')))
            raise LookupError(diary['error'])
    schedule = diary['result']['students'][str(self.student_id)]
    if (not silent):
        load_spinner.text = 
        load_spinner.ok(stylize('[Расписание успешно получено!] ', fg('green')))
    return schedule