开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜