WebClient- DownloadString我没有下载整个文本 [英] WebClient- DownloadString I did not download the entire text
本文介绍了WebClient- DownloadString我没有下载整个文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在此网站中有一个td元素,其中包含以下歌曲:
01。豪尔赫& Mateus - OQueÉTemTem(Ao Vivo)
02. Luan Santana - Te Vivo
03. Thiaguinho - AsaparênciasEnganam
04维克多& Leo - Na Linha do Tempo
所以当我做web.DownloadString(http://www.maxalbums.com/album/VA/HITS+PARA+NAMORAR.html);
i没有得到全文
请帮忙!
点击查看
http://www.maxalbums.com/album/VA/HITS+PARA+NAMORAR.html 一>
推荐答案
您可以通过在(隐藏的)WebBrowser控件中加载页面来获取JavaScript注入的内容,等待它完成加载(请参阅WebBrowser
),然后访问其文档文本属性。
您也可以使用Gecko执行此操作。 请参见 this [ ^ ]回答链接。
/ ravi
You can get at content injected by JavaScript by loading the page in a (hidden) WebBrowser control, wait for it to finish loading (see events exposed byWebBrowser
), and then access its document text property.
You could also use Gecko to do this. See this[^] SO answer for a link.
/ravi
这篇关于WebClient- DownloadString我没有下载整个文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文