Querying the upcoming public transport departures in Berlin
Project description
bvg-grabber
Showing BVG Departures In Your Office
Installation
Requires Python 3!
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. Default: 9
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.2.1.tar.gz
(9.1 kB
view hashes)
Built Distribution
Close
Hashes for bvg_grabber-0.2.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 167ab48b653e44c274c03098e55ffb5cb89971ecea33542b76ff6fb8985271e5 |
|
MD5 | 289e520a7a30b296a879ce95c4db1ed0 |
|
BLAKE2b-256 | 8b7adce3842f69ded7dbc89a0d4ef36a7187ec251b9b8ab71e03c01d14998ab4 |