Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/max-vogler/kit-language-courses
A scraper for language courses of the KIT Sprachzentrum
https://github.com/max-vogler/kit-language-courses
Last synced: about 1 month ago
JSON representation
A scraper for language courses of the KIT Sprachzentrum
- Host: GitHub
- URL: https://github.com/max-vogler/kit-language-courses
- Owner: max-vogler
- License: gpl-2.0
- Created: 2015-10-11T11:47:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-11T15:05:06.000Z (about 9 years ago)
- Last Synced: 2024-04-09T11:23:27.234Z (7 months ago)
- Language: Kotlin
- Size: 4.12 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KIT Language Courses
A scraper for language courses of the KIT Sprachzentrum## Usage
#### Use API
```kotlin
// Kotlin
val scraper = Scraper()
val languages = scraper.loadLanguages() // returns List
val courses = scraper.loadCourses() // returns Listcourses.forEach { println(it.name) }
``````java
// Java
Scraper scraper = new Scraper();
List languages = scraper.loadLanguages();
List courses = scraper.loadCourses();courses.forEach((course) -> System.out.println(course.getName()));
```#### Print a table
```
java -jar build/libs/kit-language-courses-*.jar
```
```
┌───────────────┬──────────────────┬───────┬─────┬────┬───────────────┬──────┬───┬────────────┐
│ Arabisch 1a │ Dr. Gharieb │ 50.20 │ 256 │ Di │ 13.45 - 15.15 │ € 90 │ 2 │ Arabisch │
│ Arabisch 1b │ Abd Alla │ 50.20 │ 301 │ Mo │ 19.30 - 21.00 │ € 90 │ 2 │ Arabisch │
│ Arabisch 2 │ Dr. Gharieb │ 50.20 │ 256 │ Di │ 15.15 - 16.45 │ € 90 │ 2 │ Arabisch │
│ Chinesisch 1a │ Lin │ 50.20 │ 256 │ Di │ 19.30 - 21.00 │ € 90 │ 2 │ Chinesisch │
│ Chinesisch 1b │ Wang │ 50.20 │ 207 │ Mo │ 19.30 - 21.00 │ € 90 │ 2 │ Chinesisch │
│ Chinesisch 1c │ Wang │ 50.20 │ 207 │ Mi │ 19.30 - 21.00 │ € 90 │ 2 │ Chinesisch │
│ Chinesisch 1d │ Zhang-Backenstos │ 50.20 │ 301 │ Do │ 19.00 - 20.30 │ € 90 │ 2 │ Chinesisch │
...
```#### Print JSON
```
java -jar build/libs/kit-language-courses-*.jar -json
```
```json
[
{
"name": "Arabisch 1a",
"lecturer": "Dr. Gharieb",
"building": "50.20",
"room": "256",
"weekday": "Di",
"time": "13.45 - 15.15",
"price": "€ 90",
"ects": "2",
"language": "Arabisch"
},
{
"name": "Arabisch 1b",
"lecturer": "Abd Alla",
"building": "50.20",
"room": "301",
"weekday": "Mo",
"time": "19.30 - 21.00",
"price": "€ 90",
"ects": "2",
"language": "Arabisch"
},
...
```