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="<iframe src="http://drunksportsfans.com/embedframe/537" frameborder=0 width=510 height=400 scrolling=no></iframe>"> i need value part, more complicated title , image
this simple enough:
$value_of_input = $html->find('input[name=media_embed_code]', 0)->value;
Comments
Post a Comment