Open choppymaster opened 3 years ago
Hello, choppymaster 👋
scrapeFull
option to search
options, so it will only scrape full when option available.description
, genre
, type
, etc
is possible but it will make package slowFor getting additional properties (description
, genre
, etc
), scraper will have to fetch entire anime page, search
method returns url
property, scraper will have to send another GET
request to anime url
& then convert it to textContent
, cheerio (npm pkg for making scraping work easier) will load all text content from anime url
& get our additional properties, after that all it will make all raw content from cheerio into textContent
.
Add scrapeFull
property to search
options, so it will only fetch additional properties when there is scrapeFull
option available.
Thanks
Good idea.
Tru, the delay would really increase when loading multiple pages. You can instead use search and store the anime link in a var then use fetchAnime to fetch the data from that link. It'd be the same process
The
search
function allows to get the title, link, image and release date. It would be nice if you add a data object with these response. So the returning main object would include another object that includes other anime info like description, genre, type etc. Thanks.