Git Product home page Git Product logo

zbb's Introduction

zbb

Build

„zurück bleiben, bitte!“

zbb is a CLI fetching the latest schedules for the Berliner Verkehrsbetriebe (BVG).

It provides the latest disruptions and delays on your favorite lines while you enjoy the comfort of your terminal.

Here is an example of output for a search regarding the Bus 245 from Berlin Main Station.

alt text

This looks like a bad commute!

How does zzb work?

zbb works by scraping http://mobil.bvg.de

Why?

  • The BVG has an official API but developers need to officially apply to be granted an API key.
  • I wanted to play with Rust.
  • I actually need this :)

Prior art

  • Lots of projects have followed the same strategy to by-pass the need for an API key.
  • zbb pretends by no mean to do something new nor original.

Usage

By default, calling zbb without any arguments will start the interactive mode. It consists in a series of questions to find out what you want.

If you want to repeat a query that you know to be valid, you can use the fast mode.

-F, --fast <STATION> <LINE> used to by-pass the interactive mode

e.g. zbb --fast Sonnenallee S42

Then nothing prevents you from creating an alias :)

alias next-train-home='zbb --fast Sonnenallee S42'

zbb's People

Contributors

agourlay avatar yanns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yanns

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.