如何使用“属性隐藏的html5”获取网站数据

时间:2014-04-23 03:22:34

标签: c# html5

我想从网站上阅读源代码,但内容是隐藏的,例如:

此代码,由Firefox读取 **

<script type="text/javascript" src="http://stc.m.nixcdn.com/js/html5-player.0.1.js"></script>
    <div class="player">
        <div class="hide-html5">
            <audio id="audio" controls="controls">
                <source src="http://aredir.nixcdn.com/4872ac6dba1848a6300a022df6b76789/5357217a/NhacCuaTui854/LacDuong-PhamTruong-3025698.mp3" type="audio/mpeg" />
            </audio>
        </div> 
        <div id="play" class="play control">
        </div> 
        <div id="progress">
            <div id="progress_box">
                <div id="load_progress" style="width:0px;">
                    <div class="hand-control" id="hand_progress" style="left:-7px;">
                    </div>
                    <div id="play_progress" style="width:0px;">
                    </div>
                </div>
            </div>
        </div>
        <div id="play_time"> 
            <span id="current_time_display">00:00</span>
        </div>
    </div>
    <script type="text/javascript">
        bodyLoaded();
        document.getElementById("audio").addEventListener("ended",
                function() {
                    playAudio();
                }, false);
    </script>

**

C#代码:

using(WebClient client = new WebClient())
            {
                data = client.DownloadString(url);
            } 

但下载的源代码没有内容。  我用c#。谢谢。

0 个答案:

没有答案