0

I have this URL 'http://www.clarin.com/' and i need to get one specific 'div' from him, but this div is in parent div that it has an specific class when the page is loaded, but when you click on this parent div, the name of the class changes from nav-btn nav-noticias visto had-ad to nav-btn nav-noticias visto had-ad over

enter image description here

How can i get this dom with a previous clic perform?

enter image description here

1
  • The solution that i found out was scan all entire newspaper's home with pure HTML instead of try to read only this specific section. Commented May 30, 2016 at 19:58

1 Answer 1

1

Basically, you can't do it with pure php. Because this DOM change happens inside a browser DOM engine, and PHP works with inital DOM HTML.

But you can do it with, for example, PhantomJS + PHP. Good example/tool for working with phantom is Codeception.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for your help! Finally, i resolved in another way!
It could be a good carma if you'll edit your answer and tell us about your workaround

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.