I don't get it. Isn't this
already what you are asking for?
Apparently it has already been used for agsexplorer.com.
The example output csv on the GitHub page seems to only run up to Feb 4, 2014 however. So, it requires running the pts_chain.rb script on a computer with a synchronized PTS daemon running.