开发者

How to capture data coming from an AJAX enabled web site?

开发者 https://www.devze.com 2023-03-31 05:26 出处:网络
Some time ago I created an application to dynamically capture data from an asp site navigating it, parsing the html pages I got and storing the selected data into a datab开发者_高级运维ase.

Some time ago I created an application to dynamically capture data from an asp site navigating it, parsing the html pages I got and storing the selected data into a datab开发者_高级运维ase.

Now I need to do the same again but this time the web site is developed using AJAX and I don't know how to face the problem. Any ideas are welcome.

Thanks.


I'd suggest two ways of solving you problem:

1) if you create a crawler for one particular site with tons of data to retrieve, write these requests manually (using WebRequest class, for example)

2) if you need universal solution, try some GUI testing tools (Selenium, Telerik WebAii etc.) to run browser into site, so JS and AJAX will be executed by browser.

Depends on you.

0

精彩评论

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

关注公众号