Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 1.3 KB

README.md

File metadata and controls

63 lines (45 loc) · 1.3 KB

CAU Cafeteria Menus Scraper (CCMS) npm

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 // optional (default: 5)
}).then(data => {
  // Do something
})

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.xv2.1.x Migration Guide

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'