开发者

simplehtmldomparser - php - not reading display none elements that are shown in firebug

开发者 https://www.devze.com 2023-03-15 08:29 出处:网络
I am using simplehtmldomparser built on php to read content from a url. http://simplehtmldom.sourceforge.net/manual.htm

I am using simplehtmldomparser built on php to read content from a url.

http://simplehtmldom.sourceforge.net/manual.htm

I am trying to retrive a element with "display:none" which I can see in firebug. But that element is not shown when I retrive the dom in php.

Any reason for this? an开发者_如何学Pythond how can I solve this issue?


It is not possible to read javascript generated content using simplehtmldomparser as the php script will not execute any of the javascript in the website.

So I used imacros to extract the javascript generated content and then used simplehtmldomparser to read the required content.

0

精彩评论

暂无评论...
验证码 换一张
取 消