在 wiki 共享中检索图像许可和作者信息 [英] Retrieving image license and author information in wiki commons

查看:26
本文介绍了在 wiki 共享中检索图像许可和作者信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 wikimedia API 用于 wiki commons:

I am trying to use the wikimedia API for wiki commons at:

http://commons.wikimedia.org/w/api.php

公共 API 似乎非常不成熟,他们的文档中提到了这种可能性 检索许可证和作者信息为空.

It seems like the commons API is very immature and the part at their document that mentions the possibility to retrieve license and author information is empty.

无论如何我可以检索包含有关使用 API 的许可信息的段落吗?(例如,标题为许可"的段落本页).当然我可以下载整个页面并尝试解析它,但是 API 有什么用?

Is there anyway I can retrieve the paragraph that contains the information about the licensing using the API? (For example, the paragraph under the title "Licensing" at this page). Of course I can download the whole page and try to parse it, but what are APIs for?

推荐答案

Late answer 但您可以使用以下查询请求extmetadata"数据:

Late answer but you can request the "extmetadata" data with the following query:

http://en.wikipedia.org/w/api.php?action=query&prop=imageinfo&iiprop=extmetadata&titles=File%3aBrad_Pitt_at_Incirlik2.jpg&format=json

在 imageinfo.extmetadata.UsageTerms、Artist、Credit 等下查看

Look under imageinfo.extmetadata.UsageTerms, Artist, Credit, etc.

这篇关于在 wiki 共享中检索图像许可和作者信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆