Skip to content

Instantly share code, notes, and snippets.

@spudtrooper
Last active December 27, 2021 12:59
Show Gist options
  • Save spudtrooper/8f2b41214eaaef4f79ed07ba07cc1614 to your computer and use it in GitHub Desktop.
Save spudtrooper/8f2b41214eaaef4f79ed07ba07cc1614 to your computer and use it in GitHub Desktop.

A friend of mine had a few parking tickets, so I wanted to calibrate against something--I chose my latest Lyft drives. So, below is a list of parking fines for my latst lyft drivers, with the license plates hidden a little.

To find your own:

  1. Search your gmail for Lyft license plates -- you can use this: https://script.google.com/home/projects/1agetKQXWeJkai_JTyLEFhnNNDOZ_v6OztpqTAEn_ou-QfjqA_V8NQT2D
  function searchMail() {
    let query = 'lyft plate';
    let threads = GmailApp.search(query);
    let plates = [];
    threads.forEach((t) => {
      let ms = t.getMessages();
      ms.forEach((msg) => {
        let body = String(msg.getBody());
        let m = body.match(/License Plate\: ([A-Za-z0-9]+)/);
        if (!m || m.length != 2) {
          return;
        }
        let plate = m[1];
        plates.push(plate)
        Logger.log('plate: %s', plate)
      });
    });
    Logger.log('plates: %s', plates.join(','))
  }
  1. Pass the last line of output to https://github.com/spudtrooper/nyc-parking-violations, e.g.
nyc-parking-violations --plates <PLATES>
  • T6____5C: $3965.00
  • T7____3C: $2045.00
  • T7____8C: $1300.00
  • T7____6C: $1161.34
  • T7____6C: $825.00
  • T7____2C: $800.00
  • T7____3C: $798.59
  • T7____9C: $717.70
  • T7____6C: $575.00
  • T7____8C: $530.00
  • T7____5C: $276.12
  • T7____3C: $245.00
  • T6____2C: $230.00
  • T7____7C: $200.00
  • T7____8C: $180.00
  • T6____3C: $175.00
  • T6____7C: $125.00
  • T6____7C: $125.00
  • T7____7C: $115.00
  • T7____2C: $115.00
  • T6____8C: $115.00
  • T7____2C: $75.00
  • T7____0C: $65.00
  • T7____0C: $65.00
  • T7____1C: $65.00
  • T7____9C: $65.00
  • T6____2C: $65.00
  • T7____3C: $50.00
  • T7____3C: $50.00
  • T7____5C: $50.00
  • T7____2C: $50.00
  • T7____4C: $50.00
  • T7____1C: $50.00
  • T6____2C: $50.00
  • T8____2C: $0.00
  • T8____7C: $0.00
  • T8____7C: $0.00
  • T8____5C: $0.00
  • T7____0C: $0.00
  • T7____3C: $0.00
  • T7____6C: $0.00
  • T7____5C: $0.00
  • T7____0C: $0.00
  • T7____3C: $0.00
  • T7____4C: $0.00
  • T7____2C: $0.00
  • T7____1C: $0.00
  • T7____0C: $0.00
  • T7____1C: $0.00
  • T7____0C: $0.00
  • T7____9C: $0.00
  • T7____5C: $0.00
  • T7____2C: $0.00
  • T7____4C: $0.00
  • T7____5C: $0.00
  • T7____5C: $0.00
  • T7____6C: $0.00
  • T7____1C: $0.00
  • T7____5C: $0.00
  • T7____7C: $0.00
  • T7____9C: $0.00
  • T7____0C: $0.00
  • T7____9C: $0.00
  • T7____2C: $0.00
  • T7____7C: $0.00
  • T7____3C: $0.00
  • T7____6C: $0.00
  • T7____8C: $0.00
  • T7____0C: $0.00
  • T7____3C: $0.00
  • T6____1C: $0.00
  • T6____3C: $0.00
  • T6____7C: $0.00
  • T6____1C: $0.00
  • T6____9C: $0.00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment