tREADME.md - canteen-info - scrape weekly menus from canteens surrounding Aarhu… | |
git clone git://src.adamsgaard.dk/canteen-info | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
tREADME.md (1218B) | |
--- | |
1 # canteen-info | |
2 Fetch and parse homepages from canteens nearby the Department of Geoscie… | |
3 Aarhus University, and display their weekly menus as a single html page.… | |
4 to date output can be found on | |
5 [cs.au.dk/~adc/files/canteeninfo.html](https://cs.au.dk/~adc/files/cante… | |
6 | |
7 All content is licensed by the GNU Public License v.3 or later. See `LIC… | |
8 for details. | |
9 | |
10 The package requires standard POSIX tools included in most modern Linux | |
11 distributions, as well as `wget` and `html2text`. | |
12 | |
13 To install run: | |
14 | |
15 $ sudo make install | |
16 | |
17 To generate the output HTML webpage run: | |
18 | |
19 $ canteeninfo | |
20 | |
21 The HTML file will be output. To save it as a file in the current folder… | |
22 `canteeninfo > ./canteeninfo.html`. I recommend copying the file to the … | |
23 folder if the machine hosts a webserver or transfering the file to a web… | |
24 using SCP. It is also recommended to automatically regenerate the page w… | |
25 cron job, (``crontab -e``). For example: | |
26 | |
27 30 * * * * canteeninfo > /tmp/canteeninfo.html && scp /tmp/cante… | |
28 | |
29 To uninstall run: | |
30 | |
31 $ sudo make uninstall | |
32 | |
33 Author: Anders Damsgaard, https://src.adamsgaard.dk/canteen-info |