Bring a trailer…map.

If you’ve not heard of BringATrailer.com, then you’ll likely not be into cars too heavily. It’s a pretty simple concept — an auction site specifically for cars; they tend to be on the older and more unique end of the spectrum. A couple of examples:

1963 Morris Minor Traveller — pretty rare, but I remember seeing a friends mom driving one as a kid
A Honda S2000…with 91 miles; somehow I really want one, and lust after this one. However, it’s too nice and at $70k, I couldn’t justify driving it.

It’s an eclectic mix, but one where most car lovers would find something interesting. However, for me, the lack of a map has been a itch I’ve wanted to scratch (a few other users have asked) for a while.

So, I built one. Every 20m, I pull a single page and then update all of the auctions, generate a map and put the latest pricing and title for each listing. The result is a map you can zoom around and easily find interesting local auctions.

Today I just noticed there is an E30 M3 close to me!

Check it out here: https://bringatrailermap.rsmith.co/

How does it work?

It’s pretty hacky (but, that’s ok):

  1. every 20m, pull the https://bringatrailer.com/auctions/ page
  2. use ruby to process it, and split it in to individual auctions and save them in a folder as JSON
  3. separately process those into GeoJSON and build a static page. It uses Mapbox for the actual map, and is basically a customized version of this tutorial they have.
  4. add it all to git, and push to github (so, I can track changes over time to auctions — though I’m doing much with that right now)
  5. Netlify sees the push to gihub, then deploys the pre-built static site