What kind of script do you want? just import affiliate datafeed files (like CSV ) into your online database?