Выдаёт ошибку list index out of range

не могу решить проблему с циклом все перепробовал, но ничего, все остаётся так же

import telebot
import config
import requests
from bs4 import BeautifulSoup as BS

bot = telebot.TeleBot(config.TOKEN)


@bot.message_handler(commands=['start'])
def weather(message):
    r = requests.get('https://4pda.ru/')
    html = BS(r.content, 'html.parser')

    for el in html.select('.post'):
        text = el.select('.description')[0].text

    bot.send_message(message.chat.id, text)


bot.polling(none_stop=True)

Ошибка: IndexError: list index out of range


Ответы (0 шт):