CAU Food Scraper
It scrapes food data for 5 days(default, starting today) from Chungang University's restaurants.
npm install @payw/cau-food-scraper
const foodScrape = require('@payw/cau-food-scraper').default
import foodScrape from '@payw/cau-food-scraper'
foodScrape({
id: 'portal-id',
pw: 'portal-pw',
days: 1
}).then(data => {
})
Return Data
Below is overall data schema of an example return value. Check out the type definitions for more information.
{
campus: 'seoul'
days: [
{
date: Date,
breakfast: [
{
name: "restaurant name",
meals: [
{
time: "HH:mm~HH:mm",
title: "meal title",
price: "$,$$$ 원",
menus: [
"menu1",
"menu2",
...
]
}
...
]
}
],
lunch: [
],
supper: [
]
}
...
]
}