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 + селениумом по необходимости, все эти апи ***ня