Reputation: 52241
I want to write crawler for screen scraping
What I want is, I want to get price of particular hotel from a website, like here is website
e.g. In the above URL, there is list of hotels and its price. I want to get the price of the beaufort
Please Advise how to accomplish this.
Upvotes: 1
Views: 427
Reputation: 29452
download the HTML with a tool like cURL and then use XPath to select the tags you are interested in. Use Firebug to help you determine the XPath.
Upvotes: 0
Reputation: 32936
use a HTML parsing library like the html agility pack to parse the html into a more usable model and then navigate the model to find the bits of the HTML you are interested in
Upvotes: 2