如何从 Edge 获取 URL 和选项卡标题
我一直在做一些研究,但没有发现任何当前有用的东西。我正在尝试创建一个程序,可以在边缘当前打开的选项卡中获取所有 URL 及其标题。我猜这必须使用 C# 来完成,我没有这方面的经验。有人可以创建一个能够执行此操作的程序吗?我不介意想要语言,我只想将它们全部存储起来 - 最好是 JSON 键值对 - 或者甚至只是纯文本也可以。任何人都可以帮忙,因为我没有使用边缘的经验:)
I have been doing some research and have found nothing current and of use. I am trying to create a program that can get all URLs and their Titles in the currently open tabs on edge. I am guessing this would have to be done using C#, in which I have no experience in. Could someone please create a program that would be able to do this please? I don't mind want language I would just want to have them all stored - preferable in JSON key-value pairs - or even just plain text is fine. can anyone help as I have no experience working with edge :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果需要获取当前 Edge 中所有选项卡的 url 和标题,可以使用 System.Windows.Automation C# 中的 API。
这是一个简单的演示:
这就是结果:
If you need to get the url and title of all tabs in the current Edge, you can use the System.Windows.Automation api in C#.
Here is a simple demo:
And this is the result: