All Projects → TimeForANinja → Node Ytpl

TimeForANinja / Node Ytpl

Licence: mit
Anonymous YouTube playlist resolver.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Node Ytpl

Youtubedownloader
Downloads videos and playlists from YouTube
Stars: ✭ 2,202 (+2293.48%)
Mutual labels:  playlist, youtube
Ngx Youtube Player
YouTube player app built with Angular 7
Stars: ✭ 92 (+0%)
Mutual labels:  playlist, youtube
Alltomp3
Node module to download and convert in MP3 with tags an online video
Stars: ✭ 120 (+30.43%)
Mutual labels:  playlist, youtube
Play.cash
🎶 Music lovers, rejoice.
Stars: ✭ 89 (-3.26%)
Mutual labels:  playlist, youtube
Youtube In Background
YiB is an Android app, which extracts audio from YouTube videos and plays them in background.
Stars: ✭ 58 (-36.96%)
Mutual labels:  playlist, youtube
playlist-quarantine-edition
Playlist Quarantine Edition
Stars: ✭ 20 (-78.26%)
Mutual labels:  playlist, youtube
yout
🔥 YouTube playlist player for desktop. Free, no YouTube ads, floating window. Available for Linux, Mac and Windows.
Stars: ✭ 82 (-10.87%)
Mutual labels:  playlist, youtube
Musicbot
🎶 A Discord music bot that's easy to set up and run yourself!
Stars: ✭ 1,109 (+1105.43%)
Mutual labels:  playlist, youtube
Scrape Youtube
A lightning fast package to scrape YouTube search results. This was made and optimized for Discord Bots.
Stars: ✭ 43 (-53.26%)
Mutual labels:  playlist, youtube
Pi-OpenCast
📺 Transform your Raspberry Pi into an awesome streaming device.
Stars: ✭ 29 (-68.48%)
Mutual labels:  playlist, youtube
Streamly
Portable, independent, web-based, simple streaming YouTube video queues and playlists for music videos, audiobooks, etc.
Stars: ✭ 60 (-34.78%)
Mutual labels:  playlist, youtube
Queuetube
Make YouTube a little bit smoother
Stars: ✭ 72 (-21.74%)
Mutual labels:  playlist, youtube
Ytmdesktop
A Desktop App for YouTube Music
Stars: ✭ 1,297 (+1309.78%)
Mutual labels:  youtube
Python3 data structures
Code from Youtube Tutorial Series
Stars: ✭ 90 (-2.17%)
Mutual labels:  youtube
Youtube.external.subtitle
Add subtitle to Embedded YouTube videos
Stars: ✭ 88 (-4.35%)
Mutual labels:  youtube
Youtube Music Desktop
A desktop client for YouTube Music with MusixMatch lyrics.
Stars: ✭ 92 (+0%)
Mutual labels:  youtube
Jquery Youtube Channels Playlist
jQuery plugin youtube playlist
Stars: ✭ 90 (-2.17%)
Mutual labels:  youtube
Youtube Regex
Best YouTube Video ID regex. Online: https://regex101.com/r/rN1qR5/2 and http://regexr.com/3anm9
Stars: ✭ 87 (-5.43%)
Mutual labels:  youtube
Botify
Discord bot that plays Spotify tracks and YouTube videos or any URL including Soundcloud links and Twitch streams
Stars: ✭ 86 (-6.52%)
Mutual labels:  youtube
Youtube flutter app
Stars: ✭ 85 (-7.61%)
Mutual labels:  youtube

node-ytpl

NPM version NPM downloads codecov Known Vulnerabilities Discord

Simple js only package to resolve YouTube Playlists. Does not require any login or Google-API-Key.

Support

You can contact us for support on our chat server

Usage

var ytpl = require('ytpl');

const playlist = await ytpl('UU_aEa8K-EOJ3D6gOs7HcyNg');
dosth(playlist);

API

ytpl(id, [options])

Attempts to resolve the given playlist id

  • id

    • id of the yt-playlist
    • or a playlist url
    • or a user url (resolves to uploaded playlist)
    • or a channel url (resolves to uploaded playlist)
  • options

    • object with options
    • possible settings:
    • gl[String] -> 2-Digit Code of a Country, defaults to US - Allows for localisation of the request
    • hl[String] -> 2-Digit Code for a Language, defaults to en - Allows for localisation of the request
    • limit[Number] -> limits the pulled items, defaults to 100, set to Infinity to get the whole playlist - numbers <1 result in the default being used
    • pages[Number] -> limits the pulled pages, pages contain 100 items, set to Infinity to get the whole playlist - numbers <1 result in the default limit being used - overwrites limit
    • requestOptions[Object] -> Additional parameters to passed to miniget, which is used to do the https requests
  • returns a Promise

  • Example response

ytpl.continueReq(continuationData)

Continues a previous request by pulling yet another page.
The previous request had to be done using pages limitation.

Usage

var ytpl = require('ytpl');

const playlist = await ytpl('UU_aEa8K-EOJ3D6gOs7HcyNg', { pages: 1 });
display(playlist.items);
const r2 = ytpl.continueReq(playlist.continuation);
display(r2.items);
const r3 = ytpl.continueReq(r2.continuation);
display(r3.items);
  • returns a Promise resolving into { continuation, items }

ytpl.validateID(string)

Returns true if able to parse out a (formally) valid playlist ID.

ytpl.getPlaylistID(string)

Returns a playlist ID from a YouTube URL. Can be called with the playlist ID directly, in which case it just resolves.

  • returns a promise resolving into a string containing the id

Related / Works well with

Install

npm install --save ytpl

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].