Kanttiinit / kitchen

Express server powering the API.
http://kitchen.kanttiinit.fi
GNU General Public License v3.0
4 stars 3 forks source link

Update parser urls for some Arabia&Kumpula restaurants #27

Closed otahontas closed 1 year ago

otahontas commented 1 year ago

Apparently Luova, DIAK-Kalasatama and Arabianranta have been finally updated to serve their lunch lists via structured json api. This means we can drop the previous html-parser (compassgroup.ts) and start using existing amica-parser for all three.

Here are the corresponding new menuapi URLs that serve json: https://www.compass-group.fi/menuapi/feed/json?costNumber=3104&language=fi // diak kalasatama https://www.compass-group.fi/menuapi/feed/json?costNumber=1256&language=fi // arabianranta https://www.compass-group.fi/menuapi/feed/json?costNumber=1251&language=fi // luova

Not sure if there were other restaurants we used compassgroup-parser for?

httnn commented 1 year ago

thanks for the PR and letting us know! i've updated the URLs in our database but since the menus seem to be empty (maybe because of the weekend), i'll wait until monday before merging the PR and closing this.

otahontas commented 1 year ago

seems that the lists for these restaurants are working now 👍

httnn commented 1 year ago

seems so, i've merged the PR now. thanks a lot for the contribution!