Writing Crawler for Screen Scraping
I want to write crawler for screen scraping
What I want is, I want to get price of particular hotel from开发者_JAVA百科 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.
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
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.
精彩评论