All genres can be found in this link, located on the div element with classname genres. It all listed on ul li element. It contain genre names with count of webtoon with that genre.
all the genre link, when clicked will redirect the user on page https://www.webtoon.xyz/webtoon-genre/:genre.
Data format for our store should be like this
type Genre = {
name: string
count: number
}
type GenreScrapperFn = () => Promise<Genre[]>
All genres can be found in this link, located on the div element with classname
genres
. It all listed on ul li element. It contain genre names with count of webtoon with that genre.all the genre link, when clicked will redirect the user on page
https://www.webtoon.xyz/webtoon-genre/:genre
.Data format for our store should be like this
please also add test for scrapping genres.