Skip to main content
Downloads Latest Version Development branch

bvg-grabber

Showing BVG Departures In Your Office

Blog post:

https://markusholtermann.eu/2013/06/showing-bvg-departures-in-your-office/

Slides:

https://speakerdeck.com/markush/showing-bvg-departures-in-your-office

Pictures:
Installation 1 Installation 2

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)"
         }
      ]
   ]
]

Release files for bvg-grabber 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bvg-grabber 0.2.1
File Size Uploaded
bvg-grabber-0.2.1.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bvg-grabber 0.2.1
File Interpreter ABI Platform
bvg_grabber-0.2.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 20.5 kB

Release files / bvg-grabber-0.2.1.tar.gz

Download URL bvg-grabber-0.2.1.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3c655ddb2ecf7e439ed80e146c44878e61e1d2348d4f1b0d4ddf48a4d0516b92
BLAKE2b-256 checksum
How to use checksums
0a9ab0bc171969bcdd50e7ca3fe7e3ad6a74a7959b155228b28ddac935b136b8
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / bvg_grabber-0.2.1-py2.py3-none-any.whl

Download URL bvg_grabber-0.2.1-py2.py3-none-any.whl
Size 11.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
167ab48b653e44c274c03098e55ffb5cb89971ecea33542b76ff6fb8985271e5
BLAKE2b-256 checksum
How to use checksums
8b7adce3842f69ded7dbc89a0d4ef36a7187ec251b9b8ab71e03c01d14998ab4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.1b1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page