# maccms-api-collect **Repository Path**: zhangjiangcn/maccms-api-collect ## Basic Information - **Project Name**: maccms-api-collect - **Description**: 苹果cms接口爬虫 支持commonjs - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-23 - **Last Updated**: 2023-07-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 苹果cms接口爬虫工具 苹果cmsV10接口爬虫 支持commonjs - npm [https://www.npmjs.com/package/maccms-api-collect](https://www.npmjs.com/package/maccms-api-collect) - gitee [https://gitee.com/zhangjiangcn/maccms-api-collect](https://gitee.com/zhangjiangcn/maccms-api-collect) ## 示例 ``` typescript 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); } })(); ```