{"id":15044009,"url":"https://github.com/aschuma/dsb-untis","last_synced_at":"2025-10-23T18:30:52.771Z","repository":{"id":42656854,"uuid":"330420011","full_name":"aschuma/dsb-untis","owner":"aschuma","description":"A RESTful Docker-based service for fetching and converting HTML-based Untis Timetables from DSB into a more accessible JSON format.","archived":false,"fork":false,"pushed_at":"2024-08-25T14:08:37.000Z","size":151,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T20:29:47.389Z","etag":null,"topics":["docker","docker-image","dsb","javascript","library","nodejs","rest","rest-server","server","untis","untis-timetable"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aschuma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-17T15:16:56.000Z","updated_at":"2024-08-25T14:08:40.000Z","dependencies_parsed_at":"2024-08-25T15:26:44.633Z","dependency_job_id":"b9403837-3e27-4ba4-aeb5-2cd03513e090","html_url":"https://github.com/aschuma/dsb-untis","commit_stats":{"total_commits":54,"total_committers":4,"mean_commits":13.5,"dds":"0.14814814814814814","last_synced_commit":"4251d88e130bb6bf4d3e0687275d30e4e6854d91"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuma%2Fdsb-untis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuma%2Fdsb-untis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuma%2Fdsb-untis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aschuma%2Fdsb-untis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aschuma","download_url":"https://codeload.github.com/aschuma/dsb-untis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237869272,"owners_count":19379293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","dsb","javascript","library","nodejs","rest","rest-server","server","untis","untis-timetable"],"created_at":"2024-09-24T20:49:56.952Z","updated_at":"2025-10-23T18:30:47.490Z","avatar_url":"https://github.com/aschuma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![version](https://img.shields.io/npm/v/dsb-untis.svg?style=flat-square)](http://npm.im/dsb-untis)\n[![downloads](https://img.shields.io/npm/dm/dsb-untis.svg?style=flat-square)](http://npm-stat.com/charts.html?package=dsb-untis\u0026from=2021-01-01)\n[![MIT License](https://img.shields.io/npm/l/dsb-untis.svg?style=flat-square)](http://opensource.org/licenses/MIT)\n\n# DSB crawler and Untis's HTML parser / REST service\n\n## Basic Usage\n\n```javascript\nimport DsbUntis from 'dsb-untis';\n\nconst username = \"165931\";\nconst password = \"secret\";\n\nconst dsbUntis = new DsbUntis(username, password);\ndsbUntis.fetch().then((data) =\u003e {\n  console.log(JSON.stringify(data))\n});\n```\n\n## Server Mode\n\nStart a HTTP server providing the data:\n\n```javascript\nimport DsbUntis = from 'dsb-untis';\n\nconst username = \"165931\";\nconst password = \"secret\";\n\nconst dsbUntis = new DsbUntis(username, password);\ndsbUntis.listen(9000);\n```\n\n## Server Mode / Docker Image\n\nSupported platforms:\n\n* linux/amd64\n* linux/arm64\n* linux/arm/v7 (PI 4B)\n\n```shell\ndocker run --rm  -d -e USERNAME=\"165931\" -e PASSWORD=\"secret\" -p 8080:8080  aschuma/dsb-untis:latest\n```\n\n## Example Result\n\n```json\n[\n  {\n    \"date\": \"2021-01-15T16:33:00.000Z\",\n    \"dateString\": \"15.01.2021 17:33\",\n    \"table\": [\n      [\n        \"Datum\",\n        \"Tag\",\n        \"Fach\",\n        \"Stunde\",\n        \"Lehrer\",\n        \"Text\",\n        \"Raum\",\n        \"(Fach)\",\n        \"Art\",\n        \"Vertr. von / verlegt\"\n      ],\n      [\n        \"6b\"\n      ],\n      [\n        \"15.1.\",\n        \"Fr\",\n        \"E\",\n        \"3 - 4\",\n        \"Kmt\",\n        \"\",\n        \"---\",\n        \"E\",\n        \"Entfall\",\n        \"\"\n      ],\n      [\n        \"9c\"\n      ],\n      [\n        \"15.1.\",\n        \"Fr\",\n        \"D\",\n        \"6\",\n        \"Nlr\",\n        \"\",\n        \"R109\",\n        \"D\",\n        \"Vertretung\",\n        \"\"\n      ]\n    ]\n  },\n  {\n    \"date\": \"2021-01-15T16:33:00.000Z\",\n    \"dateString\": \"15.01.2021 17:33\",\n    \"table\": [\n      [\n        \"Datum\",\n        \"Tag\",\n        \"Klasse(n)\",\n        \"Fach\",\n        \"Stunde\",\n        \"Lehrer\",\n        \"Text\",\n        \"Raum\",\n        \"(Fach)\",\n        \"Grund: (Lehrer)\",\n        \"Art\",\n        \"Vertr. von / verlegt\"\n      ],\n      [\n        \"6b\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"6b\",\n        \"Mu\",\n        \"3 - 4\",\n        \"Bo\",\n        \"\",\n        \"MuS\",\n        \"Mu\",\n        \"Kfm\",\n        \"Vertretung\",\n        \"\"\n      ],\n      [\n        \"7a\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"7a\",\n        \"D\",\n        \"1 - 2\",\n        \"Cla\",\n        \"\",\n        \"R008\",\n        \"D\",\n        \"Kfm\",\n        \"Vertretung\",\n        \"\"\n      ],\n      [\n        \"9a\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"9a, 9b, 9c\",\n        \"EvR\",\n        \"3 - 4\",\n        \"Btl\",\n        \"\",\n        \"---\",\n        \"EvR\",\n        \"Btl\",\n        \"Entfall\",\n        \"\"\n      ],\n      [\n        \"9b\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"9a, 9b, 9c\",\n        \"EvR\",\n        \"3 - 4\",\n        \"Bl\",\n        \"\",\n        \"---\",\n        \"EvR\",\n        \"Btl\",\n        \"Entfall\",\n        \"\"\n      ],\n      [\n        \"9c\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"9a, 9b, 9c\",\n        \"EvR\",\n        \"3 - 4\",\n        \"Btl\",\n        \"\",\n        \"---\",\n        \"EvR\",\n        \"Btl\",\n        \"Entfall\",\n        \"\"\n      ],\n      [\n        \"10a\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"10a, 10b, 10c\",\n        \"EvR\",\n        \"1 - 2\",\n        \"Btz\",\n        \"\",\n        \"---\",\n        \"EvR\",\n        \"Btl\",\n        \"Entfall\",\n        \"\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"10a\",\n        \"Mu\",\n        \"5\",\n        \"Trä\",\n        \"\",\n        \"MuS\",\n        \"Mu\",\n        \"Kfn\",\n        \"Vertretung\",\n        \"\"\n      ],\n      [\n        \"10b\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"10a, 10b, 10c\",\n        \"EvR\",\n        \"1 - 2\",\n        \"Btl\",\n        \"\",\n        \"---\",\n        \"EvR\",\n        \"Btl\",\n        \"Entfall\",\n        \"\"\n      ]\n    ]\n  },\n  {\n    \"date\": \"2021-01-15T16:33:00.000Z\",\n    \"dateString\": \"15.01.2021 17:33\",\n    \"table\": [\n      [\n        \"Datum\",\n        \"Tag\",\n        \"Klasse(n)\",\n        \"Fach\",\n        \"Stunde\",\n        \"Lehrer\",\n        \"Text\",\n        \"Raum\",\n        \"(Fach)\",\n        \"Grund: (Lehrer)\",\n        \"Art\",\n        \"Vertr. von / verlegt\"\n      ],\n      [\n        \"10c\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"10a, 10b, 10c\",\n        \"EvR\",\n        \"1 - 2\",\n        \"Btl\",\n        \"\",\n        \"---\",\n        \"EvR\",\n        \"Btz\",\n        \"Entfall\",\n        \"\"\n      ],\n      [\n        \"Jg2\"\n      ],\n      [\n        \"18.1.\",\n        \"Mo\",\n        \"Jg2\",\n        \"er\",\n        \"8 - 9\",\n        \"Btl\",\n        \"\",\n        \"---\",\n        \"er\",\n        \"Btl\",\n        \"Entfall\",\n        \"\"\n      ]\n    ]\n  }\n]\n```\n\n## Advanced Feature\n\nThe returned data can be customized by passing a list of ```extractors``` to the ```fetch``` method.\nThere are some built-in extractors located in the\n```src/timetableHtmlExtractors``` folder, however, you can also create your own custom extractors if needed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschuma%2Fdsb-untis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faschuma%2Fdsb-untis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faschuma%2Fdsb-untis/lists"}