A CAU cafeteria menus scraper for Node.js
What's new in v2
- 🎯 Promise-based precise data scraping without a piece of time wasting
- 🚀 Boost up to 5x faster
- 🗑 Remove dependencies which are totally unnecessary
Installation
npm install @payw/cau-cafeteria-menus-scraper
Peer Dependencies
npm i -D puppeteer pending-xhr-puppeteer
Usage
const { CCMS } = require('@payw/cau-cafeteria-menus-scraper')
CCMS({
id: 'portalId',
pw: 'portalPw',
days: 1
}).then(data => {
})
TypeScript Support
The package contains its type definitions. But you can also install types only.
npm install --save-dev @payw/cau-cafeteria-menus-scraper-types
Migration
v2.0.x
→ v2.1.x
Migration Guide
We renamed the package to 'cau-cafeteria-menus-scraper'. Also the key of the return object has been changed.
const { CAUFS } = require('@payw/cau-food-scraper')
import { CAUFS } from '@payw/cau-food-scraper'
const { CCMS } = require('@payw/cau-cafeteria-menus-scraper')
import { CCMS } from '@payw/cau-cafeteria-menus-scraper'