I encountered an issue while scraping My Hero Academia from MyAnimeList. The genres field was empty, showing only [""], despite the anime having a genre, which is "Action". I noticed that this problem occurs specifically with anime that have a single genre.
I made some simple changes to the code (result.genres part). The modifications now correctly handle scraping single-genre anime, ensuring that the genres field is populated accurately.
This pull request aims to improve the scraping process for others who may encounter similar issues with scraping anime data.
Fix empty genres for single-genre anime scraping
I encountered an issue while scraping My Hero Academia from MyAnimeList. The genres field was empty, showing only [""], despite the anime having a genre, which is "Action". I noticed that this problem occurs specifically with anime that have a single genre.
I made some simple changes to the code (result.genres part). The modifications now correctly handle scraping single-genre anime, ensuring that the genres field is populated accurately.
This pull request aims to improve the scraping process for others who may encounter similar issues with scraping anime data.