Skip to content

Commit 9371266

Browse files
committed
add missing params to app1/app2 calls
1 parent 7e0918f commit 9371266

File tree

2 files changed

+53
-47
lines changed

2 files changed

+53
-47
lines changed

check_wikimedia_search_api.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python3
22
# 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
44

55
import requests
66
import csv
@@ -80,6 +80,9 @@ def main():
8080
"action": "query",
8181
"formatversion": 2,
8282
"generator": "search",
83+
"prop": "description|pageimages",
84+
"piprop": "thumbnail",
85+
"pithumbsize": "70",
8386
"gsrnamespace" : 14,
8487
"gsrlimit": 90,
8588
"gsroffset": 0,
@@ -108,6 +111,9 @@ def main():
108111
"action": "query",
109112
"formatversion": 2,
110113
"generator": "allcategories",
114+
"prop" : "categoryinfo|description|pageimages",
115+
"piprop": "thumbnail",
116+
"pithumbsize": "70",
111117
"gaclimit": 90,
112118
"gacoffset": 0,
113119
"gacprefix": "%search_term%" # Placeholder for the search term

0 commit comments

Comments
 (0)