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