PHP:加载网页,使用动态ajax加载一些内容

I am currently using CURL to load certain webpages and then parse them. It was working fine, but some of them started to load parts of them dynamically with ajax. As a result, those parts are missing from the content, returned by curl_exec() method.

Is this possible to load full content, including dynamic/ajax content in php? Maybe there are some libraries, which can help me to achieve this?

Thanks

There is no easy way to execute JavaScripts in PHP.

If you only access a few websites, consider hardcoding/extracting the urls of the ajax calls and sending additional requests to those urls manually.