Giter VIP home page Giter VIP logo

nextbushk's Introduction

Next Bus Arrival Time Python API Wrapper for Citybus Limited and New World First Bus Service Limited

Info

This is a simple python API wrapper for the Next Bus arrival time API in Hong Kong by Citybus Limited and New World First Bus Services Limited

Api Specs: https://www.nwstbus.com.hk/datagovhk/bus_eta_api_specifications.pdf

Installation

This is just a py file as of now, so you can simply copy the nextBusApi.py file to your project and install the 'requests' module.

Alternatively you can clone this project and use [poetry](https://python-poetry.org) to install deps.

  1. clone the project
  2. poetry shell
  3. poetry install

Running

Look at the example.py file for usage example. You can simply run `python example.py`

FAQ:

  1. Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle:

Please find the path of you certificate file by using the code below ` import certifi print(certifi.where())` finally export this path

`export REQUESTS_CA_BUNDLE='path'`

nextbushk's People

Contributors

araa47 avatar

Watchers

 avatar  avatar

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.