怎么刮ajax装师? [关闭]

The title says it all. Please give me some way for how to scrape AJAX loaded Division.

There is one website which has Product Grid Division. I want this division for scrap the data from it but the problem is when i get the page content data in another html page there is no product grid because it's loaded via AJAX after some time. For Scrapping i tried both Perl and CURL with PHP.

Thanks in advance.

From WWW::Mechanize::FAQ

Which modules work like Mechanize and have JavaScript support?

In no particular order: Gtk2::WebKit::Mechanize, Win32::IE::Mechanize, WWW::Mechanize::Firefox, WWW::Scripter, WWW::Selenium

Also see: How do you scrape AJAX pages?

Using Selenium, e.g. through Selenium::Remote::Driver, you will be operating real browsers to access the site. Sites can be quite sensitive to subtle differences in browser behavior.