How many bikes, scooters, and docks are available in Chicago's Divvy bike system right now? We can answer this question using Lyft's real-time Divvy API.
This project uses Python to fetch data from Divvy's station info GBTS JSON feed and count the number of bikes, scooters, and docks currently available.
First make sure that you have Python3 installed. Then open the terminal and type:
python3 process_data.pyYou should get output that looks like this:
The Number of Divvy Bikes Currently Available in Chicago: 3695
The Number of Scooters Currently Available in Chicago: 299
The Number of Docks Currently Available in Chicago: 9279