php - Fetch html content from different domain which is injectedt by javascript -



php - Fetch html content from different domain which is injectedt by javascript -

it possible fetch html content domain in php via "file_get_contents" or curl e.g. http://davidwalsh.name/curl-download . how can fetch when dom elements injected via javascript?

and if not possible on server level, although have no experience in selenium, , guess: can somehow utilize selenium (+rc?) on local machine , access webpage 3rd party domain?

-i should add together elements seem added onload , not bounded triggers.

if wanna on server-side, simply

$contents = file_get_contents('url page'); echo $contents;

if wanna on client-side

$.ajax({ 'url' : 'url here', 'type' : 'get', 'success' : function(data) { $("#contents").html(data); } });

note: client-side work if the appropriate access command origin headers sent (most websites don't allow them)

javascript php html selenium curl

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -