嵌入 WinForms 应用教程的维基百科

发布于 2024-09-03 05:14:24 字数 290 浏览 3 评论 0原文

任何人都可以在这里发布有关如何在 .NET WinForms 应用程序(C# 或 VB)中显示维基百科文章的教程吗?如果文章可以放在字符串中就足够了,不需要将其放在任何控件上。

我在维基百科的API上找到了一些信息。读完后,我添加了对 Web 服务的引用,但找不到实现此功能的方法。

如果可能的话,请解释如何从 wiki 下载图像(链接或图像本身)。

Can anyone post a tutorial here on how to show a Wikipedia article in a .NET WinForms application (C# or VB)? If the article can be placed in a string it suffices, there`s no need to put it on any control.

I found some information on Wikipedia's API. After reading it, I added the reference to web service but can`t find a way to make this work.

And if it's possible, explain how images are downloaded from wiki (link or image itself).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

远昼 2024-09-10 05:14:24

您的链接指向本体 API,它不包括对页面的访问。

您可以使用Wikipedia API(自记录)。它说您还可以从 json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm 中选择格式。

是否需要成为来自网络的实时维基百科文章?

您可以从数据库下载页面下载所有维基百科,其中包括 SQL 和 XML 版本。

如果您需要更多说明,请对此回复发表评论,您想用它做什么?

Your link is to the ontology API, it does not include access to the pages.

You can use the Wikipedia API (self documented). It says there that you can also choose a format from json, jsonfm, php, phpfm, wddx, wddxfm, xml, xmlfm, yaml, yamlfm, rawfm, txt, txtfm, dbg, dbgfm .

Does it need to be live Wikipedia articles from the web?

You can download all of Wikipedia from their database download page, it includes SQL and XML versions.

Comment on this reply if you need more clarifications, What do you want to do with it?

黯然 2024-09-10 05:14:24

还有一个用于使用 MediaWiki wiki(例如维基百科)的框架 (DotNetWikiBot),它可能有您需要的内容。

http://dotnetwikibot.sourceforge.net

There is also a framework (DotNetWikiBot) for working with MediaWiki wikis (such as Wikipedia) which might have what you need.

http://dotnetwikibot.sourceforge.net

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文