Process the data retrieved from the web

From an e-commerce web page, i extracted data like name of books and its cost. Now I want to compare the cost column to see if any book costs less than a particular amount and then order that book which has less cost. Can anyone guide me in this?