How to return a value from a webpage using any web language.eg: select the price of iPhone 5s from Amazon?

How to return a value from a webpage using any web language.eg: select the price of iPhone 5s from Amazon?

1. Run http request for search URL
2. Parse resulting HTML
3. Extract value