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

  #15  
Старый 23.10.2022, 11:10
nasvaiupotreblatel
Участник форума
Регистрация: 23.05.2018
Сообщений: 258
С нами: 4197926

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

Цитата:
Сообщение от BHhelp  

Traceback (most recent call last):
Traceback (most recent call last):
File "C:\Users\user\Desktop\New folder (2)\autootvet.py", line 6, in
for thread in api.get_threads("https://forum.arizona-rp.com/forums/1583/"):
File "C:\Users\user\Desktop\New folder (2)\api.py", line 71, 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

Че делать
File "C:\Users\user\Desktop\New folder (2)\autootvet.py", line 6, in

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

ты не можешь ухватится за темы, не то пытаешься парсить наверное

а вообще парси бс4 + селениумом по необходимости, все эти апи ***ня
 
Ответить с цитированием