How to get information in info box of Wikipedia articles using Wikipedia api?

試著忘記壹切 提交于 2019-11-29 17:59:05
svick

The MediaWiki API doesn't understand infoboxes. So, you have basically two options:

  1. Parse the infobox yourself. You can either parse the wikitext directly or the generated HTML table (both are available from the API).
  2. Let somebody else do the parsing. This is exactly what DBPedia does. Wikidata tries to do something similar, but it probably won't contain enough data to be usable for a long time; see growth statistics.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!