[wikimedia] raise default value for 'limit' from 10 to 50
This commit is contained in:
@@ -4541,7 +4541,7 @@ extractor.wikimedia.limit
|
|||||||
Type
|
Type
|
||||||
``integer``
|
``integer``
|
||||||
Default
|
Default
|
||||||
``10``
|
``50``
|
||||||
Description
|
Description
|
||||||
Number of results to return in a single API query.
|
Number of results to return in a single API query.
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class WikimediaExtractor(BaseExtractor):
|
|||||||
self.category = "{}-{}".format(
|
self.category = "{}-{}".format(
|
||||||
self.category, self.root.partition(".")[0].rpartition("/")[2])
|
self.category, self.root.partition(".")[0].rpartition("/")[2])
|
||||||
|
|
||||||
self.per_page = self.config("limit", 10)
|
self.per_page = self.config("limit", 50)
|
||||||
|
|
||||||
def _init(self):
|
def _init(self):
|
||||||
api_path = self.config_instance("api-path")
|
api_path = self.config_instance("api-path")
|
||||||
|
|||||||
Reference in New Issue
Block a user