@ablanc/wakanim 中文文档教程
Wakanim scrapper
Description
用于废弃 wakanim.tv 内容的 Node.js 模块。
Installation
# with yarn
yarn add @ablanc/wakanim
# or with npm
npm install @ablanc/wakanim
Examples
const wakanim = require("@ablanc/wakanim");
const catalog = await wakanim.getCatalog();
const infos = await wakanim.getAnimeInfos(catalog[0].link);
// 2 weeks interval at most.
const calendar = await getCalendar({
startDate: "11-11-2019",
endDate: "17-11-2019",
free: true // optional, defaults to false
});
Tests
测试使用 Jest 框架运行。
<代码>$纱线测试
Wakanim scrapper
Description
Node.js module to scrap content of wakanim.tv.
Installation
# with yarn
yarn add @ablanc/wakanim
# or with npm
npm install @ablanc/wakanim
Examples
const wakanim = require("@ablanc/wakanim");
const catalog = await wakanim.getCatalog();
const infos = await wakanim.getAnimeInfos(catalog[0].link);
// 2 weeks interval at most.
const calendar = await getCalendar({
startDate: "11-11-2019",
endDate: "17-11-2019",
free: true // optional, defaults to false
});
Tests
Tests are run using Jest framework.$ yarn test