Querying the upcoming public transport departures in Berlin
Project description
bvg-grabber
Showing BVG Departures In Your Office
Installation
To use bvg-grabber go and install it as you do with every Python package:
$ pip install bvg-grabber
or:
$ pip install --user bvg-grabber
Usage
bvg-grabber comes with a simple command line tool bvg-grabber.py:
$ bvg-grabber.py --help usage: bvg-grabber.py [-h] [--vehicle [{S,U,TRAM,BUS,FERRY,RB,IC} [{S,U,TRAM,BUS,FERRY,RB,IC} ...]]] [--limit LIMIT] station file Query the BVG-website for departures positional arguments: station The station to query file Path to file. Use - for stdout optional arguments: -h, --help show this help message and exit --vehicle [{S,U,TRAM,BUS,FERRY,RB,IC} [{S,U,TRAM,BUS,FERRY,RB,IC} ...]] Vehicles which shall be queried, if non given actualdepartue (bus) will be used --limit LIMIT Max departures to query
Example:
$ bvg-grabber.py "U Ernst-Reuter-Platz (Berlin)" - --vehicle U --limit 2 | json_pp [ [ "U Ernst-Reuter-Platz (Berlin)", [ { "line" : "U2", "end" : "U Ruhleben (Berlin)", "remaining" : 12180, "start" : "U Ernst-Reuter-Platz (Berlin)" }, { "line" : "U2", "start" : "U Ernst-Reuter-Platz (Berlin)", "remaining" : 12600, "end" : "S+U Pankow (Berlin)" } ] ] ]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bvg-grabber-0.1.1.tar.gz
(8.8 kB
view details)
Built Distribution
File details
Details for the file bvg-grabber-0.1.1.tar.gz
.
File metadata
- Download URL: bvg-grabber-0.1.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4551f74ad1cbdbfd8c9b002a5c1a9d21b560e1c2c586da5333e3fd6e19c17345 |
|
MD5 | 81b73467df2879dc477ac694b30a3edd |
|
BLAKE2b-256 | 3cdcb022f1f13df74cdec9ddbb0e068b25852ab2b89e4d3c513ed4ef3c702751 |
File details
Details for the file bvg_grabber-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: bvg_grabber-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82e1934ee953f4465e3db6848ece384acf8f924abda549ce928b10a03d365c7e |
|
MD5 | 002982d9e909a054fe851147908a833f |
|
BLAKE2b-256 | 1deae93de9488bd19e9e8fae38421fa3d71611d4020708b07b3a5b1ecda00518 |