如何通过C#获取IE8/9活动标签页html源
我正在尝试在 Visual Studio 中用 C# 创建一个程序,该程序将获取 Internet Explorer 8/(首选)9 中当前打开的(或选定的或所有)选项卡的 html 源。我厌倦了通过 - 浏览器进行复制->查看源代码,alt+a,alt+c,程序 -> ALT+V 有人知道如何解决它吗?
I am trying to create a program in C# in Visual Studio which would acquire html source of a current opened (or selected, or all) tab(s) in Internet Explorer 8/ (prefered) 9. I am tired of copying by - browser-> View Source, alt+a, alt+c, program -> alt+v
Anyone got an idea how to solve it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我想这没有简单的解决方案,也许你应该继续复制和粘贴。无论如何,这是我在网上冲浪时发现的:(http://www.experts -exchange.com/Microsoft/Development/Q_23767759.html)
现在您已访问该 URL,发送 HTTP Get 请求您将获得纯文本形式的网站源代码。
Well, there's no easy solution for this I think Maybe you should continue copy and pasting. Anyway, this is what I found surfing the web: (http://www.experts-exchange.com/Microsoft/Development/Q_23767759.html)
Now that you have accessed the url, send an HTTP Get Request you will get the site source in plain text.