php - Scrape iframe embed code -


i have simple php scrape have managed set grabs title , image off page

$post=$_post['post'];  $html = file_get_html($post); $title = $html->find('h2', 1); $imageurl = $html->find('img', 1);   echo $title->plaintext."<br>\n"; echo $imageurl->src; 

but im trying grab video embed code, uses iframe this

 <input type="text" name="media_embed_code" id="mediaembedcodeinput" size="110" onclick="this.focus();this.select();" value="&lt;iframe src=&quot;http://drunksportsfans.com/embedframe/537&quot; frameborder=0 width=510 height=400 scrolling=no&gt;&lt;/iframe&gt;"> 

i need value part, more complicated title , image

this simple enough:

$value_of_input = $html->find('input[name=media_embed_code]', 0)->value;


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -