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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bvg-grabber-0.2.1.tar.gz.
File metadata
- Download URL: bvg-grabber-0.2.1.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c655ddb2ecf7e439ed80e146c44878e61e1d2348d4f1b0d4ddf48a4d0516b92
|
|
| MD5 |
84df42e78cddf797ab252a74589d86c1
|
|
| BLAKE2b-256 |
0a9ab0bc171969bcdd50e7ca3fe7e3ad6a74a7959b155228b28ddac935b136b8
|
File details
Details for the file bvg_grabber-0.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: bvg_grabber-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
167ab48b653e44c274c03098e55ffb5cb89971ecea33542b76ff6fb8985271e5
|
|
| MD5 |
289e520a7a30b296a879ce95c4db1ed0
|
|
| BLAKE2b-256 |
8b7adce3842f69ded7dbc89a0d4ef36a7187ec251b9b8ab71e03c01d14998ab4
|