Closed GoogleCodeExporter closed 8 years ago
Note that wikitools has moved to GitHub. Except for currently outstanding bug
reports, all new development work will happen there -
https://github.com/alexz-enwp/wikitools
To fix the specific problem in this case, you need to set the 'redirects' param
to automatically resolve redirects
params = {'action':'query',
'titles' : 'deep lake water cooling',
'prop':'extracts|images|imageinfo',
'format' : 'json',
'iiprop' : 'parsedcomment|url|dimensions|size',
'generator':'images',
'exlimit':10,
'redirects':''
}
This should do what you want.
The more general problem is that most generator queries with an empty result
set return nothing.
I've fixed this in
https://github.com/alexz-enwp/wikitools/commit/22a8b920b53f2afc83bf2621d4e802d33
e201f06
It now "properly" returns [] as an APIListResult object
Original comment by MrZmanwiki@gmail.com
on 6 Nov 2013 at 5:17
Issue 50 has been merged into this issue.
Original comment by MrZmanwiki@gmail.com
on 7 Dec 2013 at 10:41
Original issue reported on code.google.com by
Basel.Ma...@gmail.com
on 5 Jul 2013 at 2:14