twlite / youtube-sr

A dead-simple youtube metadata scraper
https://npmjs.com/package/youtube-sr
MIT License
113 stars 16 forks source link

Playlist videos #29

Closed AngeloCore closed 3 years ago

AngeloCore commented 3 years ago

If a youtube playlist has 100+ videos, the getPlaylist fetch only the first 100 videos

twlite commented 3 years ago

You should check README

YouTube.getPlaylist("some_youtube_playlist")
  .then(playlist => playlist.fetch()) // if your playlist has 500 videos, this makes additional 4 requests to get rest of the 400 videos. (100 videos = 1 request)
  .then(console.log) // all parsable videos
  .catch(console.error);
AngeloCore commented 3 years ago

kk