File tree Expand file tree Collapse file tree 2 files changed +53
-47
lines changed Expand file tree Collapse file tree 2 files changed +53
-47
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/python3
2
2
# for finding best solution to Wikimedia Commons category search at https://github.com/commons-app/apps-android-commons/issues/3179
3
- # by mnalis, released under Apache license 2.0 - version 20240603.3
3
+ # by mnalis, released under Apache license 2.0 - version 20240603.4
4
4
5
5
import requests
6
6
import csv
@@ -80,6 +80,9 @@ def main():
80
80
"action" : "query" ,
81
81
"formatversion" : 2 ,
82
82
"generator" : "search" ,
83
+ "prop" : "description|pageimages" ,
84
+ "piprop" : "thumbnail" ,
85
+ "pithumbsize" : "70" ,
83
86
"gsrnamespace" : 14 ,
84
87
"gsrlimit" : 90 ,
85
88
"gsroffset" : 0 ,
@@ -108,6 +111,9 @@ def main():
108
111
"action" : "query" ,
109
112
"formatversion" : 2 ,
110
113
"generator" : "allcategories" ,
114
+ "prop" : "categoryinfo|description|pageimages" ,
115
+ "piprop" : "thumbnail" ,
116
+ "pithumbsize" : "70" ,
111
117
"gaclimit" : 90 ,
112
118
"gacoffset" : 0 ,
113
119
"gacprefix" : "%search_term%" # Placeholder for the search term
You can’t perform that action at this time.
0 commit comments