yt-notify

0.0.7 • Public • Published

yt-notify

It will emit stuff on new video.

Example

const YTNotifyClient = require("yt-notify");
const client = new YTNotifyClient({
  checkInterval: 1000 * 30,
  itemLimit: 10,
  preFill: false
});
const untrigger = client.on("video", (video, url) => {
  console.log({ video, url });
})
const unsub = client.subscribe("https://www.youtube.com/feeds/videos.xml?channel_id=UCaZGQt419Ptsdk_lh2mz9lQ");
setTimeout(() => {
  unsub();
  untrigger();
}, 10000)

Package Sidebar

Install

npm i yt-notify

Weekly Downloads

1

Version

0.0.7

License

ISC

Unpacked Size

4.93 kB

Total Files

4

Last publish

Collaborators

  • erdemgoksel