简体   繁体   English

必须启用Webclient和Javascript

[英]Webclient and Javascript must be enabled

Here's my issue, I was using a webclient to download the html code of the following page http://audiko.net/search?q=lana+del+rey&search-options=audiko-search-options and do some parsing after download. 这是我的问题,我正在使用Web客户端下载以下页面的html代码http://audiko.net/search?q=lana+del+rey+search&options=audiko-search-options ,并在下载后进行一些解析。

Now when I try to download through webclient all I get is a " Javascipt must be enabled" message. 现在,当我尝试通过webclient下载时,得到的是“必须启用Javascipt”消息。

And I can't find a way to bypass this thing. 而且我找不到办法绕过这件事。

Any ideas? 有任何想法吗?

Platform: Windows Phone 平台:Windows Phone

What I've done in order to solve the problem was the following 为了解决这个问题,我做了以下工作

Added a hidden web browser to my .xaml page, through the C# code I used the navigate method of the webbrowser, subscribed to the LoadCompleted event and the called the SaveToString() method of the webbrowser and voila. 通过使用Webbrowser的navigation方法的C#代码,在我的.xaml页面上添加了隐藏的Web浏览器,订阅了LoadCompleted事件以及webbrowser和voila的被称为SaveToString()方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM