I\'ve been looking for a way to query the wikipedia api based on a search string for a list of articles with the following properties:
As Bergi suggested, using generators is the way to go here. Specifically what I would do:
The whole query could look like this:
http://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrsearch=test&gsrlimit=10&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max