Bot releases are visible (Hide)
Published by twlite over 3 years ago
Published by twlite over 3 years ago
safeSearch
optiongetVideo
methodPublished by twlite over 3 years ago
Published by twlite over 3 years ago
Published by twlite over 3 years ago
Published by twlite over 3 years ago
Fix: Deno
Published by twlite almost 4 years ago
Error: Could not parse playist: Cannot read property 'shortBylineText' of undefined
)const { YouTube } = require("youtube-sr");
const url = "YOUR_PLAYLIST_URL";
YouTube.getPlaylist(url)
.then(x => console.log(x.videos.length))
.catch(console.error);
Published by twlite almost 4 years ago
Published by twlite almost 4 years ago
Published by twlite almost 4 years ago
Deno support https://deno.land/x/youtube_sr
Published by twlite almost 4 years ago
Published by twlite almost 4 years ago
validateURL
to validate
with validation typesNPMJS: https://npmjs.com/package/youtube-sr
GitHub: https://github.com/DevSnowflake/youtube-sr
Published by twlite almost 4 years ago
Support for URL Validation
// with valid url
const res = youtube.validateURL(url);
console.log(res); // true
// with invalid url
const res = youtube.validateURL(url);
console.log(res); // false
Published by twlite almost 4 years ago
This version supports playlist parsing
Example:
const playlistURL = "SOME_PLAYLIST";
youtube.getPlaylist(playlistURL)
.then(console.log);