1.1.0 • Published 2 years ago

ytfps v1.1.0

Weekly downloads
68
License
MIT
Repository
github
Last release
2 years ago

ytfps

YouTube Full Playlist Scraper

Tiny module to scrap youtube playlist or album metadata and their videos (not limited to 100)

Install

npm install ytfps

Usage

const ytfps = require('ytfps');
// TypeScript: import ytfps from 'ytfps'; //with --esModuleInterop

ytfps('PLAbeRqyTx1rIGWY13HgPyh0VF0LdoTQFp').then(playlist => {
    do_something(playlist);
}).catch(err => {
    handle_error(err);
});

//you can also pass an YTFPSOptions object to limit the amount of videos you want to scrap:
let playlist = await ytfps(playlistId, { limit: 13 });

API

ytfps(id, opts?);

Scraps the supplied playlist and returns a promise with its metadata.

  • id
    • youtube playlist's id
    • or youtube playlist's URL
  • opts

    • an optional YTFPSOptions object:
      interface YTFPSOptions {
          limit?: number
      }
  • Example response

License

MIT

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

4 years ago

1.0.0

4 years ago