Re: [Wikitech-l] Author of wikipedia images

2017-07-11 Thread Bryan Davis
On Tue, Jul 11, 2017 at 10:40 PM, Trung Dinh  wrote:
> Hi everyone,
>
> How can we programmatically (or from the data dump) get the author of the 
> main image shown in a Wikipedia article. For example, the image for Barrack 
> Obama page is 
> https://en.wikipedia.org/wiki/Barack_Obama#/media/File:President_Barack_Obama.jpg
>  and the author of the image is Pete 
> Souza.

Try action=query=imageinfo:


This is what MultimediaViewer uses behind the scenes to describe the
image when shown in lightbox mode:


Bryan
-- 
Bryan Davis  Wikimedia Foundation
[[m:User:BDavis_(WMF)]] Manager, Cloud Services  Boise, ID USA
irc: bd808v:415.839.6885 x6855

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Author of wikipedia images

2017-07-11 Thread Trung Dinh
Hi everyone,

How can we programmatically (or from the data dump) get the author of the main 
image shown in a Wikipedia article. For example, the image for Barrack Obama 
page is 
https://en.wikipedia.org/wiki/Barack_Obama#/media/File:President_Barack_Obama.jpg
 and the author of the image is Pete 
Souza.

Thanks!

Trung
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l