Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/vbb-disruptions
Scrapes disruptions from the S-Bahn Berlin website and the BVG website.
https://github.com/derhuerst/vbb-disruptions
berlin bvg transit transport vbb
Last synced: 6 days ago
JSON representation
Scrapes disruptions from the S-Bahn Berlin website and the BVG website.
- Host: GitHub
- URL: https://github.com/derhuerst/vbb-disruptions
- Owner: derhuerst
- License: isc
- Created: 2016-03-30T01:23:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-13T17:38:35.000Z (about 5 years ago)
- Last Synced: 2024-11-02T06:03:14.194Z (12 days ago)
- Topics: berlin, bvg, transit, transport, vbb
- Language: JavaScript
- Homepage: https://github.com/derhuerst/vbb-disruptions
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# *vbb-disruptions*
**Scrapes disruptions in VBB public transport** from the [S-Bahn Berlin website](http://mobil.s-bahn-berlin.de/constructions/overview) and the [BVG website](http://www.bvg.de/de/Fahrinfo/Verkehrsmeldungen).
[![npm version](https://img.shields.io/npm/v/vbb-disruptions.svg)](https://www.npmjs.com/package/vbb-disruptions)
[![build status](https://img.shields.io/travis/derhuerst/vbb-disruptions.svg)](https://travis-ci.org/derhuerst/vbb-disruptions)
[![Windows build status](https://img.shields.io/appveyor/ci/derhuerst/vbb-disruptions.svg)](https://ci.appveyor.com/project/derhuerst/vbb-disruptions)
[![dependency status](https://img.shields.io/david/derhuerst/vbb-disruptions.svg)](https://david-dm.org/derhuerst/vbb-disruptions)
[![dev dependency status](https://img.shields.io/david/dev/derhuerst/vbb-disruptions.svg)](https://david-dm.org/derhuerst/vbb-disruptions#info=devDependencies)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-disruptions.svg)
[![gitter channel](https://badges.gitter.im/derhuerst/vbb-rest.svg)](https://gitter.im/derhuerst/vbb-rest)## Installing
```shell
npm install vbb-disruptions
```## Usage
```js
const disruptions = require('vbb-disruptions')
disruptions().then(console.log)
``````js
[
{
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](https://github.com/derhuerst/vbb-disruptions/issues).