javascript - PHP Simple HTML DOM Parser for "Generated Source Code" -


from understanding, there 2 types of source code (generated source code vs source code per page (as describe in here what difference between "source" , "generated source"?).

when use php simple html dom parser (http://simplehtmldom.sourceforge.net/), notice source code.

how generated source code?

if not possible using php simple html dom parser , there other ways using php generated source code? (optional)

if not possible using php gebnerated source code, there other ways using javascript it? (optional)

updates 1: reference answer made user shankar damodaran, need change understanding there 3 types of source code follows:

  • actual source code (e.g. php, aspx. applies server-side scripts)

  • source code (the source code before javascript , css applied)

  • generated source code (the source code after javascript , css applied)

you can't via php alone, have rely on either selenium or phantom.js, headless browsers render page , return html structure looking for.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -