dsb_server 0.0.1 dsb_server: ^0.0.1 copied to clipboard
This package allows you to crawl DSB's "Mobile API" and parse Untis's HTML.
import 'dart:io';
import 'package:dsb_server/dsb_server.dart';
import 'package:shelf/shelf_io.dart';
void main() => serve(
dsbHandler(
generateAuthid: (_, __, ___, ____, _____) => '000-000',
getContent: (path, authid) => path),
InternetAddress.loopbackIPv6,
0,
).then((server) => print(server.port));