Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjl9903/bgmc
Bangumi Data / API Clients
https://github.com/yjl9903/bgmc
animegarden animespace bangumi bangumi-api bgm tmdb
Last synced: 2 months ago
JSON representation
Bangumi Data / API Clients
- Host: GitHub
- URL: https://github.com/yjl9903/bgmc
- Owner: yjl9903
- License: mit
- Created: 2023-04-20T18:48:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-14T22:54:48.000Z (3 months ago)
- Last Synced: 2024-10-15T10:03:40.972Z (3 months ago)
- Topics: animegarden, animespace, bangumi, bangumi-api, bgm, tmdb
- Language: TypeScript
- Homepage:
- Size: 86.8 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bangumi Data / API Clients
[![version](https://img.shields.io/npm/v/bgmd?label=bgmd)](https://www.npmjs.com/package/bgmd)
[![version](https://img.shields.io/npm/v/bgmc?label=bgmc)](https://www.npmjs.com/package/bgmc)
[![version](https://img.shields.io/npm/v/tmdbc?label=tmdbc)](https://www.npmjs.com/package/tmdbc)
[![CI](https://github.com/yjl9903/bgmc/actions/workflows/ci.yml/badge.svg)](https://github.com/yjl9903/bgmc/actions/workflows/ci.yml)- Bangumi data which is scraped from Bangumi and TMDB
- TypeScript wrapper of [Bangumi API](https://bangumi.github.io/api/)
- TypeScript wrapper of [TMDB API](https://developer.themoviedb.org/docs/getting-started)## Usage
### bgmd
[![version](https://img.shields.io/npm/v/bgmd?label=bgmd)](https://www.npmjs.com/package/bgmd)
```bash
npm i bgmd
```You can just use the following cdn to get the latest data.
- `https://unpkg.com/bgmd@0/data/index.json`
- `https://unpkg.com/bgmd@0/data/calendar.json`
- `https://unpkg.com/bgmd@0/data/full.json`Or you can just use the following APIs in `bgmc/data` to fetch the latest data from cdn.
```ts
import { getCalendar } from 'bgmc/data';const calendar = await getCalendar();
console.log(calendar);
```### bgmc
[![version](https://img.shields.io/npm/v/bgmc?label=bgmc)](https://www.npmjs.com/package/bgmc)
```bash
npm i bgmc
``````ts
import { BgmClient } from 'bgmc';const client = new BgmClient(fetch);
const calendar = await client.calendar();console.log(calendar);
```### tmdbc
[![version](https://img.shields.io/npm/v/tmdbc?label=tmdbc)](https://www.npmjs.com/package/tmdbc)
```bash
npm i tmdbc
``````ts
import { TMDBClient } from 'tmdbc';const client = new TMDBClient({ token: 'Your token' });
```## License
MIT License © 2023 [XLor](https://github.com/yjl9903)