Open Gasoline Price Data

Peter Rukavina

Remember the work I did a few weeks ago to serve up Prince Edward Island to New Brunswick energy interchange in an open format via Pachube?

It seemed like a good idea unlock data on regulated petroleum prices trapped inside Island Regulatory and Appeals Commission HTML in a similar fashion.

So I’ve created some PHP code to scrape the data out of the HTML and into XML, JSON or Pachube-friendly formats and a Pachube feed the uses this code. The result of all this means that you can programmatically pull current gasoline prices from Pachube and use the data to build new and interesting applications. 

Comments

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). You can subscribe to an RSS feed of posts, an RSS feed of comments, or receive a daily digests of posts by email.

Search