editted getdata.rb - need to figure out how to append url