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&gsradius=7000&gscoord=46.56|6.30&gslimit=20
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=images
https://fr.wikipedia.org/w/api.php?action=parse&pageid=8578447&prop=images
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