- Bangumi data which is scraped from Bangumi and TMDB
- TypeScript wrapper of Bangumi API
- TypeScript wrapper of TMDB API
Bangumi data which is scraped from Bangumi and TMDB.
npm i bgmdIt exports 3 bundled json file:
bgmd: Basic information of all the scraped bangumi subjectbgmd/full: Full information (with summary and more) of all the scraped bangumi subjectbgmd/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, or use the helper functions in bgmt/cdn.
bgmd:https://unpkg.com/bgmd@0/dist/index.jsonbgmd/full:https://unpkg.com/bgmd@0/dist/full.jsonbgmd/calendar:https://unpkg.com/bgmd@0/dist/calendar.json
Shared bangumi helper functions used by bgmx.
npm i bgmtYou can use the following APIs to fetch the latest bgmd data from cdn.
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()WIP
trimSeason('xxx 第二季')
// ...JavaScript Bangumi client bindings.
npm i bgmcimport { BgmClient } from 'bgmc';
const client = new BgmClient();
const calendar = await client.calendar();
console.log(calendar);JavaScript TMDB client bindings.
npm i tmdbcimport { TMDBClient } from 'tmdbc';
const client = new TMDBClient({ token: 'Your token' });MIT License © 2023 XLor