canteen-info

scrape weekly menus from canteens surrounding Aarhus University
git clone git://src.adamsgaard.dk/canteen-info # fast
git clone https://src.adamsgaard.dk/canteen-info.git # slow
Log | Files | Refs | README | LICENSE Back to index

README.md (1218B)


      1 # canteen-info
      2 Fetch and parse homepages from canteens nearby the Department of Geoscience,
      3 Aarhus University, and display their weekly menus as a single html page.  Up
      4 to date output can be found on
      5 [cs.au.dk/~adc/files/canteeninfo.html](https://cs.au.dk/~adc/files/canteeninfo.html).
      6 
      7 All content is licensed by the GNU Public License v.3 or later. See `LICENSE`
      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 run
     22 `canteeninfo > ./canteeninfo.html`. I recommend copying the file to the www root
     23 folder if the machine hosts a webserver or transfering the file to a webserver
     24 using SCP. It is also recommended to automatically regenerate the page with a
     25 cron job, (``crontab -e``). For example:
     26 
     27     30 *   * * *   canteeninfo > /tmp/canteeninfo.html && scp /tmp/canteeninfo.html adc@fh.cs.au.dk:~/public_html_cs/files > ~/.canteeninfo.log
     28 
     29 To uninstall run:
     30 
     31     $ sudo make uninstall
     32 
     33 Author: Anders Damsgaard, https://src.adamsgaard.dk/canteen-info