Skip to content

ホロジュールからスクレイピングして配信スケジュールを取得するAPI鯖

Notifications You must be signed in to change notification settings

drumath2237/hololive-now-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hololive-now-server

About this

ホロジュールからスクレイピングしてホロライブメンバーの配信スケジュールを取得するAPI鯖

Usage

yarn install
yarn start

API Reference

Endpoints

/api/scheduleapi/schedule/nowというエンドポイントにアクセスすることで、 JSONデータを取得できる。

url method info
/api/schedule/ GET スケジュール全体のJSON配列
/api/schedule/now/ GET 現在配信中の配信データ

Response Data

レスポンスデータは以下の書式に基づく。

[
  {
    "member": {
      "name": "メンバーの名前",
      "icon": "メンバーのYoutubeアイコン"
    },
    "streaming": {
      "datetime": "配信時間(UTC)",
      "url": "配信URL(Youtube)",
      "thumbnail": "Youtubeライブのサムネイル",
      "now": "配信中かどうかのboolean"
    }
  },
  {...},...
]

More info

このシステムはホロジュールからスクレイピングして情報を取得していますが、 ホロジュール自体の更新が15分ごとに行われるため、 アクセスから更新されるまでの時間に再度エンドポイントへアクセスがあっても、 あらかじめキャッシュされたデータを返すことになる。

Contact

何かございましたらこちらのTwitterへご連絡いただけますと幸いです。

にー兄さん(Twitter)

About

ホロジュールからスクレイピングして配信スケジュールを取得するAPI鯖

Resources

Stars

Watchers

Forks