Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

Latest commit

 

History

History
44 lines (37 loc) · 1.25 KB

README.md

File metadata and controls

44 lines (37 loc) · 1.25 KB

rapla-parser

This is a library for crawling timetable events from the rapla website of DHBWs. It parses the appointments into its own data structure. rapla-parser is available on maven central.

Import

Gradle (Maven Import):

compile 'com.github.dhbw-timetable:rapla-parser:0.3.3'

Maven:

<dependency>
   <groupId>com.github.dhbw-timetable</groupId>
   <artifactId>rapla-parser</artifactId>
   <version>0.3.3</version>
</dependency>

Usage

You can import a range of weeks via using:

Map<LocalDate, ArrayList<Appointment>> data = DataImporter.ImportWeekRange(start, end, url)

If you have to use java.util.Date API for a good reason (e.g. Android JDK and NDK not available) we provide backport methods you can use:

Map<TimelessDate, ArrayList<Appointment>> data = DataImporter.Backport.ImportWeekRange(start, end, url)

Contribute

You are free to customize this library for your own under the given MIT License.

Build

Generate GPG keys and login to ossrh. Use the maven profile to build the library:

$ mvn clean install -Possrh

Deploy

Same as build but with deploy to ossrh:

$ mvn clean deploy -Possrh