Python API wrapper for the galician public transport which uses the associated app's http API to get the inforamtion about buses, your card and your user account. I got the endpoints using mitmproxy.
Documentation can be found here. There are two main submodules: busGal_api.transport
and busGal_api.accounts
, the first one has all the functions related to transportation and the second one allows you to manage cards and accounts, as the name implies.
Just run:
pip install busGal_api
There are quick examples for both the submodules mentioned above in their __main__.py
and their docs.
This project is not endorsed by, directly affiliated with, maintained by, sponsored by or in any way officially related with la Xunta de Galicia, the bus operators or any of the companies involved in the bus.gal website and the app.
This software is provided 'as is' without any warranty of any kind. The user of this software assumes all responsibility and risk for its use. I shall not be liable for any damages or misuse of this software. Please use the code and information in this repo responsibly.