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.0.tar.gz
(9.3 kB
view details)
Built Distribution
File details
Details for the file bvg-grabber-0.2.0.tar.gz
.
File metadata
- Download URL: bvg-grabber-0.2.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdd2d867e440b7bec6b156108838187f4b91d21e0cd481f916475d63018dbaf8 |
|
MD5 | 6e14964d9e2c19b79d5fa61c4c0f89df |
|
BLAKE2b-256 | 4b24daa0f99b1d145ca92c4758bb1beb9feaa92841683eb57fec9c4e89f7e31a |
File details
Details for the file bvg_grabber-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: bvg_grabber-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349ebd8add7b908bf9038b4b97dcc93e5d6f7dd00b91cf3642b7efc91449f885 |
|
MD5 | 201e534f906bd487503c51b5db6f45f1 |
|
BLAKE2b-256 | 17eabf9c3735e3eb7f5510aa92b4baaeaeaa603f52ec01c622806c99b5d60e36 |