开发者

Screen Scraping - how to get AJAX based filtered data

I am working on screen scraping, its easy when filteration in query string, but the problem in AJAX based filteration,

e.g. here is an sample URL When you open this开发者_运维知识库 page, enter hotel name and click Go, Ajax filter work and show the result accordingly or you click on Next Page, it will shown next record using AJAX based.

please suggest me, how to handle these kind of issues when working in Screen Scraping?

Thank alot


You may want to try 2 Firefox add-ons. They are "Firebug" and "Tamper Data".

The "Console" window of Firebug shows the AJAX request and response.

You can then write scripts using the PHP/cURL library to mimic the request.


Do a http request as you normally do for any link or form sumbit but use the url used with ajax. Sometimes you may need to read the javascript source to determine how the url is built.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜