Socket
Socket
Sign inDemoInstall

ytfps

Package Overview
Dependencies
2
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ytfps

scraps youtube playlist metadata and all its videos (not limited to 100), does not require API key


Version published
Weekly downloads
13
decreased by-50%
Maintainers
1
Install size
440 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 12 Oct 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc