The issue in this scraper begins in the restruct_raw function, when many warning are thrown for not finding expected text. However, the function runs and returns restructured data. extract_from_raw() doesn't return extracted data because no death data was extracted so when line 241 runs, a comparison between nil and an int doesn't work. Fix the restruct function and the scraper should work in my opinion. Stack trace excerpted below.
The issue in this scraper begins in the
restruct_raw
function, when many warning are thrown for not finding expected text. However, the function runs and returns restructured data.extract_from_raw()
doesn't return extracted data because no death data was extracted so when line 241 runs, a comparison between nil and an int doesn't work. Fix the restruct function and the scraper should work in my opinion. Stack trace excerpted below.