I have run into this issue several times over the years. My current project at [1]uses Wikidata instead of Wikipedia, as it is easy to get the "image or not" information from Wikidata, and any Wikipedia article associated with a Wikidata item could use the image there, and thus *potentially* has an image.
You can currently get Wikidata items with coordinates but no image from [2] and [3], but only [2] does "around these coordinates" queries. Also, feel free to use the API at [1], if you can figure it out.
A remaining problem is that, while Wikidata has more items with images than any Wikipedia (save en, for now), there are still plenty of Wikipedia pages with images where the Wikidata item has none. One can use [4] to quickly add existing images from Wikipedia to Wikidata.
Cheers, Magnus
[1] https://tools.wmflabs.org/wikishootme/ [2] http://wdq.wmflabs.org/api_documentation.html [3] https://query.wikidata.org/ [4] https://tools.wmflabs.org/fist/wdfist/index.html
On Mon, Apr 25, 2016 at 8:40 AM Oleksiy Muzalyev < oleksiy.muzalyev@bluewin.ch> wrote:
Greetings, Wikimeida API Colleagues,
I am working on the application for finding geo-locations of articles of different language versions of Wikipedia, including articles which need an illustration: http://ausleuchtung.ch/geo_wiki/ , either by the coordinates in the articles themselves, or by the wikipedia tag of the OSM map.
While searching by the coordinates contained in Wikipedia articles the application basically uses the query:
https://fr.wikipedia.org/w/api.php?action=query&list=geosearch&gsrad...
Is it possible to modify this query so that it shows only the Wikipedia articles which do not have any image illustration without looping via all "pageid"s?
But even with looping, even by checking by each "pageid", I encounter a problem. For example, these articles have got no illustration:
https://fr.wikipedia.org/?curid=9754525 or https://fr.wikipedia.org/?curid=8578447 (in this article there is even "image missing" banner).
Still, the following queries show the results with numerous auxiliary JPG, SVG, and PNG images:
https://fr.wikipedia.org/w/api.php?action=parse&pageid=9754525&prop=... https://fr.wikipedia.org/w/api.php?action=parse&pageid=8578447&prop=...
The application displays geo-locations of articles around the click on the map, but then I have to open each article by clicking on the link in the corresponding geo-marker in order to find an article without an illustration. It is quite time consuming and fault-prone as often there are dozens of geo-markers, dozens of articles to open.
With best regards, Oleksiy
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api