wikimedia-commons

How to get with Mediawiki API all images in a category which are not in another one?

谁说我不能喝 提交于 2020-01-04 03:57:17
问题 I am entirely new to API, so sorry if the question is silly. I would like to get all images in a category in Commons let's say X, but exclude those which are also in another one (Y). I do not understand if I can actually do this. https://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmtype=file&cmtitle=Category:X will get all of them, how to exclude some? moreover I would like in the result to have the description of the images, not just the name of the file, is that

How to get with Mediawiki API all images in a category which are not in another one?

…衆ロ難τιáo~ 提交于 2020-01-04 03:56:09
问题 I am entirely new to API, so sorry if the question is silly. I would like to get all images in a category in Commons let's say X, but exclude those which are also in another one (Y). I do not understand if I can actually do this. https://commons.wikimedia.org/w/api.php?action=query&list=categorymembers&cmtype=file&cmtitle=Category:X will get all of them, how to exclude some? moreover I would like in the result to have the description of the images, not just the name of the file, is that

Wikimedia Commons API search images by (latitude, longitude)

随声附和 提交于 2019-12-18 08:18:13
问题 I would like to retrieve images from Wikimedia Commons to display on a map. This means that given a pair (latitude, longitude) I would like to find pictures around this point. After a day of searching and trying I have still no idea whether this is possible or not. In particular I have read MediaWiki API Main page, the API reference and some examples. So my question is: is it possible to retrieve pictures with a pair of geographical coordinates? If yes, how? 回答1: Yeah, that's possible. On

Get depictions from Wikimedia Commons

巧了我就是萌 提交于 2019-12-13 04:26:45
问题 Wikimedia Commons has a new feature to describe what a picture depicts. Example: Question How to get the "depicts" of a given image, as JSON, using either a wikimedia-android-data-client library call or a REST HTTP request? 回答1: You can use some of the Wikibase APIs (exactly which or how is not well-documented at the moment, I think). E.g. https://commons.wikimedia.org/w/api.php?action=wbgetclaims&format=jsonfm&entity=M78893847 { "claims": { "P180": [ { "mainsnak": { "snaktype": "value",

Access copyright info on Wikimedia Commons via api

蹲街弑〆低调 提交于 2019-12-12 23:53:03
问题 I would like to use the MediaWiki API to get the copyright info for an image. When you click on an image in Wikipedia, the page with the image is opened containing a button "more details". Clicking this button you come to a page which contains a "Use this file on the web" link. Clicking this link (runs the script "stockPhoto.call_web();" which) shows a window with the information I would like to get via a MediaWiki API call. I have been looking at "action=query" and all kinds of properties,

Retrieving image license and author information in wiki commons

☆樱花仙子☆ 提交于 2019-12-04 00:42:47
I am trying to use the wikimedia API for wiki commons at: http://commons.wikimedia.org/w/api.php 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. 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? Philippe Green Late answer but you can request the "extmetadata" data with

How do I get link to an image on wikipedia from the infobox?

橙三吉。 提交于 2019-12-03 13:44:27
问题 I'm parsing wikipedia infoboxes and I noticed that some infoboxes have image fields - these fields hold names of image files stashed on wikipedia somewhere. However they just contain the name of the file as is as opposed to the actual link. I checked the links of the images on real live infoboxes and the links do not seem to be from one source but the sources vary. How can I hyperlink to an image on wikipedia considering I only have the name of the image from an infobox entry. 回答1: Have you

How to download images programmatically from Wikimedia Commons without registering for a Bot account?

那年仲夏 提交于 2019-12-03 12:27:55
问题 It seems like the only way to get approval for a Bot account is if it adds to or edits information already on Wikimedia. If you try to download any images, without a bot account, using some of the api libraries out there you get error messages instead of the images. Seems like they block anyone not coming in from a browser? Anyone else have any experience with this? Am I missing something here? 回答1: Try explaining exactly what you want to do? And what you've tried? What error message did you

How to download images programatically from Wikimedia Commons without registering for a Bot account?

主宰稳场 提交于 2019-12-03 02:00:32
It seems like the only way to get approval for a Bot account is if it adds to or edits information already on Wikimedia. If you try to download any images, without a bot account, using some of the api libraries out there you get error messages instead of the images. Seems like they block anyone not coming in from a browser? Anyone else have any experience with this? Am I missing something here? Try explaining exactly what you want to do? And what you've tried? What error message did you get? You're not very clear... What libraries have you tried? If you're not aggressive, there are no