PHP Scrape嵌入 - 表示没有安装Flash

时间:2014-07-28 13:58:12

标签: php simple-html-dom

我试图从带有视频的网页上抓取数据。我试图刮的视频看起来像......

<embed type="application/x-shockwave-flash" 
    src="/player.swf" width="560" height="440" 
    style="undefined" id="mediaplayer" name="mediaplayer" 
    quality="high" allowfullscreen="true" wmode="opaque" 
    allowscriptaccess="always" bgcolor="#000000" 
    flashvars="width=560&amp;height=440&amp;autostart=true&amp;fullscreen=true&amp;file=FILEHERE">

当我刮掉包含嵌入的div时,我得到的是......

<div id="player" >
    <font size="2"><u><b><a target="_self" class="b" href="http://get.adobe.com/flashplayer/">
        ATTENTION:<br />This video will not play. You currently do not have Adobe Flash installed on this computer. Please click here to download it (it's free!)
    </a></b></u></font>
</div>

根据收到的内容,我的域名没有安装Flash。我应该如何刮取网页以正确抓取嵌入元素?

0 个答案:

没有答案