Skip to content

A Chrome extension that lets you scrape your Divvy bikeshare data

Notifications You must be signed in to change notification settings

alexsoble/divvybrags2

Repository files navigation

divvybrags2

This is a Chrome extension that lets you scrape, download, chart, and extend your Divvy bikeshare data.

To use it, you need two things:

  1. A Divvy membership. (Get one here: https://divvybikes.com/membership)
  2. The Chrome browser. (Get it here: https://www.google.com/intl/en/chrome/browser/)

Load Divvybrags into your browser as an extension. Then navigate to your Trips page (https://divvybikes.com/account/trips). The extension will create a Divvybrags sidebar with three options: Calculate my Mileage, Download as CSV, and Chart My Data.

Each of the options triggers a javascript function in the background.js file.

Calculate my Mileage queries the Google Distance Matrix API with each of your trips to estimate the mileage logged. It displays high-level stats for the user, adds milage estmates to the CSV downloads, and enables the Chart function. The Google Distance Matrix API has a limit of 2,500 free calls per day, unfortunately.

Download as CSV builds a little CSV representation of your data and sends it to your Downloads folder. If you've calculated mileage, you get that data too.

Chart My Data uses highcharts.js to graph your miles logged per day and cumulative mileage.

Thank you shout-outs

Tip of the hat to @tothebeat for building a big huge file with Divvy Station distances, @hunterowens for the good advice, Dan Gohlke for smart feature ideas, Drew Huening for pointing the way to a browser extension, and @iandees for writing the very first divvybikes.com scraping tool.

About

A Chrome extension that lets you scrape your Divvy bikeshare data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published