maccms-api-collect
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

苹果cms接口爬虫工具

苹果cmsV10接口爬虫 支持commonjs

示例

import Collecter from "maccms-api-collect";

(async () => {
  const collecter = new Collecter(
    // "https://cj.lziapi.com/api.php/provide/vod/at/xml/", // 苹果cmsv10 xml采集地址
    "https://cj.lziapi.com/api.php/provide/vod/", // 苹果cmsv10 json采集地址
    { h: 24 } // 采集最近小时
  );

  const types = await collecter.types(); // 采集视频类型
  console.log(types);

  let videos = null;
  // 循环查询所有页数据
  while ((videos = await collecter.nextPage())) {
    console.log(videos);
  }
})();

Readme

Keywords

none

Package Sidebar

Install

npm i maccms-api-collect

Weekly Downloads

1

Version

1.5.0

License

none

Unpacked Size

127 kB

Total Files

25

Last publish

Collaborators

  • zhangjiang