Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ytfps

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22
decreased by-12%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 21 May 2024

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc