Kylart / MalScraper

Scrape everything you can from MyAnimeList.net
MIT License
177 stars 49 forks source link

[Feature] Adding the scraping of the pictures tabs #47

Closed JustalK closed 3 years ago

JustalK commented 3 years ago

Hello,

I added a function getPictures for getting the images link of the tabs pictures.

const data = await getPictures({name: 'Ginga Eiyuu Densetsu',id: 820})
[{
  imageLink: 'https://cdn.myanimelist.net/images/anime/8/9568l.jpg'
},{
  imageLink: 'https://cdn.myanimelist.net/images/anime/13/13225l.jpg'
},...]

I added the documentation inside the Readme and the tests inside the test.pictures.js with a coverage of 100%