tuxbud
tuxbud

Reputation: 63

Get full HTML after Ajax requests

Using PHP, how can I get the full HTML for a page after all Ajax requests have been executed on that page?

Basically, I would like to have the same HTML you see when you inspect an element in Google Chrome showing both the original HTML plus the extra markup added after the Ajax calls are done.

Upvotes: 0

Views: 139

Answers (1)

Blue
Blue

Reputation: 22911

You'd need to use a headless browser to render the page. Check out Mink, as it appears to do what you're looking for.

Upvotes: 1

Related Questions