Skip to content

AnimeGarden/bgmd

Repository files navigation

bgmd

version CI

Bangumi data which is scraped from Bangumi and TMDB.

Usage

npm i bgmd

It exports 3 bundled json file:

  • bgmd: Basic information of all the scraped bangumi subject
  • bgmd/full: Full information (with summary and more) of all the scraped bangumi subject
  • bgmd/calendar: Basic information of the onair bangumis that was onairing at the time of package release
import basic from 'bgmd' with { type: 'json' };

import full from 'bgmd/full' with { type: 'json' };

import calendar from 'bgmd/calendar' with { type: 'json' };

If you don't want to download this large package, you can just use the following cdn to get the latest data.

  • bgmd: https://unpkg.com/bgmd@0/dist/index.json
  • bgmd/full: https://unpkg.com/bgmd@0/dist/full.json
  • bgmd/calendar: https://unpkg.com/bgmd@0/dist/calendar.json

Or use the following helper functions in bgmt/cdn to fetch cdn.

npm i bgmt
import { fetchBasicSubjects, fetchFullSubjects, fetchCalendarSubjects } from 'bgmt/cdn'

// https://unpkg.com/bgmd@0/dist/index.json
await fetchBasicSubjects()

// https://unpkg.com/bgmd@0/dist/full.json
await fetchFullSubjects()

// https://unpkg.com/bgmd@0/dist/calendar.json
await fetchCalendarSubjects()

License

MIT License © 2023 XLor

Contributors 2

  •  
  •