igeligel
schedulostfalia byDescription
Parser for the time schedule of the Ostfalia Hochschule für angewandte Wissenschaften in Wolfenbüttel. It will give you an easily readable format on your console via Haskell/GHCI.
Dependencies
This library is using wreq to do HTTP Requests so you need to install it before using the library. To install this refer to Installation, You also need cabal for the installation.
Dependency | Version |
---|---|
wreq | -/- |
Installation
To install the dependencies you need to install Cabal.
You have to install wreq in order to run this project. To do so type following into your console:
cabal update
cabal install -j --disable-tests wreq
After this you can clone this repository by using:
git clone https://github.com/igeligel/schedulostfalia.git
How To Use
Switch to the src directory by:
cd ./src
After this run the GHCI:
ghci
Then you should load the the core of this project by typing:
Prelude> :l core.hs
After this you can run the main function of this repository which is called getSchedule
. This function will take two parameters:
Name | Type | Description |
---|---|---|
CourseId | String | Id of the course. For a full list of courses lookup this csv. |
Week | Integer | Number of the week you want to lookup. |
Examples
Example Call:
Prelude> getSchedule "SPLUS7A3292" 16
Output:
[((8,15),(9,45),"Thursday","Grundlagen des Programmierens - VL","Hörsaal 252","Prof. Dr. F. Höppner"),((10,0),(11,30),"Thursday","Grundlagen des Programmierens - VL","Hörsaal 252","Prof. Dr. F. Höppner"),((12,0),(13,30),"Thursday","Diskrete Strukturen","Hörsaal 252","Prof. Dr. P. Riegler"),((12,0),(13,30),"Friday","Technische Grundlagen der Informatik - VL","11/1","Dipl.-Ing. K. Dammann"),((14,15),(15,45),"Thursday","Technische Grundlagen der Informatik - VL","11/1","Dipl.-Ing. K. Dammann"),((14,15),(15,45),"Friday","Diskrete Strukturen","Hörsaal 252","Prof. Dr. P. Riegler")]
Contributing
To contribute please lookup the following styleguides:
- Commits: here
Resources
Motivation
This project was created in the course 'Weitere Programmiersprache' in the Ostfalia Hochschule für angewandte Wissenschaften. It is a simple project to show Haskell's ability to parse HTML into structured data.
Architecture
The architecture contains different modules. Only core.hs
should be touched by the outside.
Contact
License
schedulostfalia is realeased under the MIT License.
Contributors
igeligel Contributions: 20 |
---|