开发者

Writing Crawler for Screen Scraping

开发者 https://www.devze.com 2022-12-24 14:17 出处:网络
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

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

精彩评论

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