Показать сообщение отдельно

  #22  
Старый 07.03.2023, 04:22
aidzava
Новичок
Регистрация: 15.07.2021
Сообщений: 20
С нами: 2543935

Репутация: 3
По умолчанию

Traceback (most recent call last):

File "c:\Users\Aegis Aurora\Desktop\цйу\main.py", line 7, in

for thread in api.get_threads("https://forum.arizona-rp.com/forums/1583/"):

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^

File "c:\Users\Aegis Aurora\Desktop\цйу\api.py", line 67, in get_threads

"latest": thread.find('div', re.compile('structItem-cell structItem-cell--latest')).find_all("a")[1].text,

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^

IndexError: list index out of range
 
Ответить с цитированием