在c#中下载dom [英] Downloading the dom in c#
本文介绍了在c#中下载dom的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的问候,
我想让DOM操纵我的Facebook主页浏览器(客户端)上的一些html,但输出下载的html是facebook的一页,要求提供凭证。
我尝试过的方法:
WebClient客户端=新WebClient();
字符串回复= client.DownloadString(https://www.facebook.com/);
请注意当我运行我的应用程序时,Web浏览器控件会自动登录,因此cookie已经存在。
My greetings,
I want to get the DOM to manipulate some of the html on the browser (client) for my Facebook home page , but the output of the downloaded html is a page of facebook that asks for credentials.
What I have tried:
WebClient client = new WebClient();
string reply = client.DownloadString("https://www.facebook.com/");
please note when I run my application , the web browser control automatically sign in , so the cookie is already there.
推荐答案
转到 https://developers.facebook.com/ [ ^ ]。
这篇关于在c#中下载dom的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文