Is it possible to capture Ajax-generated html data from an external URL?

Asked

Viewed 66 times

0

Scenario : I am trying to capture the text of certain div of a website, however div seems to be generated with Ajax.

When I inspect the element directly on the page through the browser debuger, I see the div, but when I see display source code or through the file_get_content, she is absent.

In the case of file_get_content, I get the full page, however the module containing the div does not load, keeps the gif in loop...

Some hint for this solution ?

  • Have you tried to see what routine within js is generating this div? Suddenly it can be easier than you expected and the application is generating the DIV through a public API, for example.

  • Vlw by attention, to tell the truth I’m learning php and I’m a little lost in this doubt... follow the link to which I refer :https://www.cury.net/busca?estado=sp , the information I need is the name of the product under the tag p class = p2 p2-resultado-busca, all help is welcome... @Whatysonneves

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.