Skip to content

yjl9903/bgmx

Repository files navigation

bgmx

version version version version CI

Usage

bgmd

version

Bangumi data which is scraped from Bangumi and TMDB.

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, or use the helper functions in bgmt/cdn.

  • 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

bgmt

version

Shared bangumi helper functions used by bgmx.

npm i bgmt

CDN

You 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()

Utilities

WIP

trimSeason('xxx 第二季')

// ...

bgmc

version

JavaScript Bangumi client bindings.

npm i bgmc
import { BgmClient } from 'bgmc';

const client = new BgmClient();
const calendar = await client.calendar();

console.log(calendar);

tmdbc

version

JavaScript TMDB client bindings.

npm i tmdbc
import { TMDBClient } from 'tmdbc';

const client = new TMDBClient({ token: 'Your token' });

License

MIT License © 2023 XLor

About

Bangumi API Extended Clients

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Contributors 3

  •  
  •  
  •