-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