vbb-disruptions

Disruptions in VBB public transport.

Usage no npm install needed!

<script type="module">
  import vbbDisruptions from 'https://cdn.skypack.dev/vbb-disruptions';
</script>

README

vbb-disruptions

Scrapes disruptions in VBB public transport from the S-Bahn Berlin website and the BVG website.

npm version build status dependency status dev dependency status ISC-licensed gitter channel

Installing

npm install vbb-disruptions

Usage

const disruptions = require('vbb-disruptions')
disruptions().then(console.log)
[
    {
        where: 'Wannsee - Potsdam Hbf',
        lines: [ 'S7' ],
        when: 'vom 6.5. (Fr), ca. 4 Uhr durchgehend bis 6.6. (Mo), ca. 1.30 Uhr',
        description: 'Zugverkehr nur im 20-Minutentakt'
    },
    // …
    {
        lines: [ 'U7' ],
        when: 'von 16.05.2016 22:00\nbis 03.06.2016 03:30',
        description: 'Sperrung wegen Bauarbeiten der BVG',
        where: 'U Hermannplatz  ⇄ U Rudow'
    },
    // …
    {
        lines: [ 'N67' ],
        when: 'von 27.05.2015 05:00\nbis auf Weiteres',
        description: 'Sperrung wegen Bauarbeiten der DB',
        where: 'S Schöneweide/Sterndamm  ⇄ S Schöneweide'
    }
]

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.