I’d like to access the rendered DOM of a page, after JavaScript has run and modified the page source, with PHP. I can access the raw code with CURL, but what I;d like is to access the code similar to the way Firefox’s Examine Element feature works, so I can process the actual HTML output by Javascript functions and not just the Javascript code itself. Are there any PHP libraries that can do this?
Share
Check out the “headless browser” section.
It’s a good place to start.