get total miles ridden on BIKETOWN bike share bikes in 2018 so far.


API access to Sobi..

Use Insomnia to poke around their API, it allows for Oauth2 and Basic Auth.
I am using basic auth as I couldn't figure out how to do oauth2 in Insomnia, yet.

Insomnia will automatically base64 encode your credentials if you generate code for your API request.

Python modules: requests, json, and re

The App

Link to app repo on Github:

14 git repo


Run it:

python get_bike_share_stats.py


You've ridden 29 miles this year. Good Job!

You rode 195 miles last year. Good Job!