After a while, I decided to revive this practice but automate it this time. I wrote a perl script to scrape Newegg and find the prices. It ran every day, and kept the full html pages, so the data is much more complete. As I'm sure most people know, you can get these daily flash price updates on my site. While I keep the full record of data on my computer, the only data available on my site is the current price of flash. For a while, I've been planning on coming up with some way to present the history data in some form other than a .csv file.
In not-entirely-unrelated news, I downloaded a program called gnuplot. I was tired of how annoying
To tie these two story lines together, I plotted the newegg data using gnuplot. With this new command line plotting ability I could generate a daily chart of the flash prices, as I had been wanting to do for a while. Well, fast forward a few hours and a few new perl scripts and three charts are now generated every morning when the newegg script runs. There's a total history chart starting in Feb 2009, a past year chart, and a past 3 months chart. I played around with the possible charting options for a while before I settled on those as the most readable. They are all capped at $5/GB to increase the relevant info.
The hodgepodge of scripts that make this happen every day is getting pretty good. I spent exactly 0 seconds debugging the new scripts. Also, I may make changes as I see how it goes. In other words, don't be surprised if it doesn't work.
http://daleswanson.org/things/flash.htm
No comments:
Post a Comment