0.3.1 • Published 5 years ago

uniwue-lernplaetze-scraper v0.3.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

UniWue Lernplatz Scraper

node.js script to save the occupancy rates of study and working spaces in the libraries of the University of Würzburg, Germany.

The rates are collected from the university's official online overview. The script generates CSV files as /data/<library-id>/<date>.csv. It is of the following form:

# <library-id> - <library-name> (<library-capacity>)
# <opens-at> - <closes-at>
<time>,<occupancy-rate>

The first time the CSV is created, the meta data is generated as comments. All following data entries of the form <time>,<occupancy-rate> are added at the end. The <time> is of the format HH:MM, the <occupancy-rate> is saved as a percentage. The university currently returns one of 10, 20, ..., 100. The data are updated irregularly, so the script stores a new value only after updates.

The script is intended to be used in a cronjob. Since the meta-data provided by the online overview is not updated exactly at midnight, we suggest using the following crontab entry:

* 6-23 * * * node index.js

There is currently not a single library which is longer open than midnight.

0.3.1

5 years ago

0.3.0

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago