youtube-sr

A dead-simple youtube metadata scraper

MIT License

Downloads
23K
Stars
111
Committers
16

Bot releases are hidden (Show)

youtube-sr - v4.0.1-deno

Published by twlite over 3 years ago

youtube-sr - v4.0.1

Published by twlite over 3 years ago

  • Add safeSearch option
  • Add getVideo method
youtube-sr - v4.0.0

Published by twlite over 3 years ago

  • better search filters
youtube-sr - v3.0.5

Published by twlite over 3 years ago

  • fix OL playlist
youtube-sr - v3.0.4

Published by twlite over 3 years ago

  • Playlist iterator
  • Update typings
youtube-sr - v3.0.3

Published by twlite over 3 years ago

Fix: Deno

youtube-sr - v3.0.0

Published by twlite almost 4 years ago

  • TypeScript Rewrite
  • Fixed playlist error (Error: Could not parse playist: Cannot read property 'shortBylineText' of undefined)

Example

const { YouTube } = require("youtube-sr");
const url = "YOUR_PLAYLIST_URL";

YouTube.getPlaylist(url)
    .then(x => console.log(x.videos.length))
    .catch(console.error);
youtube-sr - v2.0.5

Published by twlite almost 4 years ago

Changes

  • Fixed playlist parsing
youtube-sr - deno

Published by twlite almost 4 years ago

youtube-sr - Deno Support

Published by twlite almost 4 years ago

youtube-sr - v2.0.2

Published by twlite almost 4 years ago

Changes

  • Update playlist validation (#5)
youtube-sr - YouTube-sr v2

Published by twlite almost 4 years ago

  • Fixed playlist bug (#3)
  • Fixed locale
  • Rename validateURL to validate with validation types
  • Other minor changes

NPMJS: https://npmjs.com/package/youtube-sr
GitHub: https://github.com/DevSnowflake/youtube-sr

youtube-sr - v1.0.7 | URL Validation

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
youtube-sr - v1.0.6 | Playlist Support

Published by twlite almost 4 years ago

This version supports playlist parsing

Example:

const playlistURL = "SOME_PLAYLIST";

youtube.getPlaylist(playlistURL)
    .then(console.log);
Package Rankings
Top 5.69% on Deno.land
Top 2.32% on Npmjs.org
Related Projects