14 Get BIKETOWN Bike Share Ride info #28daysofcode #python

bicycles Feb 14, 2018



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!

Jeremy Schroeder

Developer, Inventor, all around technical guy

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.