Socket
Socket
Sign inDemoInstall

holo-schedule

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

holo-schedule

Hololive schedule parser


Version published
Weekly downloads
12
increased by71.43%
Maintainers
1
Weekly downloads
 
Created
Source

holo-schedule

npm version

I love Haachama.

Hololive schedule crawler and parser.

Install

yarn add holo-schedule

# or
npm install holo-schedule

Usage

import parseScheduleHtml from 'holo-schedule'
// or:
// const parseScheduleHtml  = require('holo-schedule').default

import getScheduleHtml from 'holo-schedule/lib/getScheduleHtml'

// You can also get the html by yourself
const html = await getScheduleHtml()

// The dict stores steamers' icon data, you can save for using next time
const { lives, dict } = parseScheduleHtml(html)

console.log(lives)

Gets list like

[
  {
    time: 2020-07-31T11:02:00.000Z,
    streamer: 'アステル・レダ',
    guests: [ '鏡見キラ', '奏手イヅル' ],
    link: 'https://www.youtube.com/watch?v=WntgMec1Q6A',
    livePreviewImage: 'https://img.youtube.com/vi/WntgMec1Q6A/mqdefault.jpg'
  },
  {
    time: 2020-08-01T10:00:00.000Z,
    streamer: '赤井はあと',
    guests: [],
    link: 'https://www.youtube.com/watch?v=bYKeO_RKh6I',
    livePreviewImage: 'https://img.youtube.com/vi/bYKeO_RKh6I/mqdefault.jpg'
  },
  ...
]

For detail, see the TypeScript definition.

Usage Example

  • Holo Data

FAQs

Package last updated on 27 Jan 2022

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