Skip to content Skip to sidebar Skip to footer

PHP HTML DOM Parse - Can't Find Element Appended Javascript

I'm trying get element from a website. But i can't find element append by javascript. Have solution for that problem> Code here: $dom = new Dom; $obj = $dom->loadFromUrl(

Solution 1:

When you reading a web page content with PHP, you are getting only static content (which are providen from a web server). The dinamic part of the content (which will be generated by JavaScript) do not exists at that moment, because PHP do not executes the JavaScript code. You can try to use V8 Javascript Engine Integration. But I do not think that you easily can achieve what you want. Maybe it will be useful for you: https://github.com/scraperlab/browserext


Post a Comment for "PHP HTML DOM Parse - Can't Find Element Appended Javascript"