-1
我有以下url http://www.toucheradio.com/hostArchivesURLForMobile.php?q=15214&host_id=45。使用c從URL獲取所需的數據#
此URL中的數據是
<table border='0' cellpadding='3' bgcolor="#CCCCCC" class="hostinfo_title2" width='100%' align="center">
<tr align='center' bgcolor="#ffffff">
<td width='26%' class="hostinfo_title3">Archive Url</td>
</tr>
<tr bgcolor="#ffffff">
<td height="25" align="center">http://www.toucheradio.com/prgramdetails/20141027_ramesh_ib.mp3</td>
</tr>
</table>
而從這個我想獲得的URL(IE)http://www.toucheradio.com/prgramdetails/20141027_ramesh_ib.mp3
誰能幫我howcan我得到這個url.I能下載該網址,但不知道如何獲得MP3網址目前在那。
ManyThanks提前
我已經使用上面的代碼,但我在DocumentElement中出現錯誤。 HtmlDocument doc = new HtmlDocument(); doc.Load(「file.htm」); 的foreach(在doc.DocumentElement.SelectNodes HtmlNode鏈路( 「//一個[@href」]) { HtmlAttribute ATT =連桿[ 「HREF」]; att.Value = FixLink(ATT); } 文檔。保存(「file.htm」);在搜索中,我已經將DocumentElement更改爲DocumentNodes.But,在這種情況下,我在SelectNodes中發生錯誤。請幫助我我正在從多天的工作。 – deepu 2014-10-29 09:40:14
我已經通過webclient 。可以請告訴我如何從下載的數據中獲得mp3網址。很多感謝。 – deepu 2014-10-29 12:08:26