Amazon API to CSV

Anyone know of a good script that I can run via cron to grab a product search from the Amazon API and write the results into a CSV file?

I've searched the forums and Goog and haven't found really found anything, but it could be because it's too early in the morning?

Help a guy out! :batman: