Skip to content

Python script to check bus locations in Belo Horizonte - Brazil

Notifications You must be signed in to change notification settings

JotaMelo/jBHTrans

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jBHTrans

Python script to check bus locations in Belo Horizonte - Brazil.

Requires BeautifulSoup 4 and Requests, you can install them with pip:

[sudo] pip install bs4
[sudo] pip install requests

Usage

There are two main methods: getAvailableBusLines and getBusLocations. The former returns all available bus lines and the latter returns all available bus locations for a line.

Example:

from jBHTrans import jBHTrans

j = jBHTrans()
lines = j.getAvailableBusLines()
locations = j.getBusLocations(lineNumber=lines[10]["lineNumber"], lineName=lines[10]["lineName"])

About

Python script to check bus locations in Belo Horizonte - Brazil

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages