dongzhuzhou4504 2014-06-13 16:28
浏览 60
已采纳

维基百科Api Extensions with Php

Iam using this Wikipedia-Php Request Methode. Now, i will get back only people, and not companys or a kind of that. My actualy url is like this:

$url = 'http://de.wikipedia.org/w/api.php?format=xml&action=query&titles='.$q.'&prop=revisions&rvprop=content';

i had searched in the wikipedia api-description, but i don't have find any help that will answer my question. Sorry for my bad English.

  • 写回答

1条回答 默认 最新

  • doudou0612 2014-06-13 20:41
    关注

    There is no certain way to chose only articles about people. You either try to traverse your way through the sub categories from Kategorie:Person, but that will give you a lot of false positives, or you can look for pages containing any of the templates that are common on pages about persons (this will vary a lot, depending on what WP edition you are talking about).

    I would, however, recommend you to have a look at WikiData or DBPedia, where you can get structured data from Wikipedia. Some hints are here: How do I get all articles about people from Wikipedia?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 基于FOC驱动器,如何实现卡丁车下坡无阻力的遛坡的效果
  • ¥15 IAR程序莫名变量多重定义
  • ¥15 (标签-UDP|关键词-client)
  • ¥15 关于库卡officelite无法与虚拟机通讯的问题
  • ¥100 已有python代码,要求做成可执行程序,程序设计内容不多
  • ¥15 目标检测项目无法读取视频
  • ¥15 GEO datasets中基因芯片数据仅仅提供了normalized signal如何进行差异分析
  • ¥100 求采集电商背景音乐的方法
  • ¥15 数学建模竞赛求指导帮助
  • ¥15 STM32控制MAX7219问题求解答