Open fatimakashakesh opened 1 year ago
when running the code i get this error File "C:\Users\pc\AppData\Local\Programs\Python\Python311\venv\test.py", line 5, in
IndexError: list index out of range
in process_data max_offset = int(get_max_offset(soup)) ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\pc\AppData\Local\Programs\Python\Python311\venv\bkscraper.py", line 24, in get_max_offset all_offset = soup.find_all('li', {'class': 'sr_pagination_item'})[-1].get_text().splitlines()[-1]
IndexError: list index out of range
Same problem (empty json file) here, but no errors
i run the code but the file was empty