[wikimedia] update documentation and test for 'image-revisions'
This commit is contained in:
@@ -6560,6 +6560,9 @@ Description
|
|||||||
The dafault value of 1 only returns the latest revision.
|
The dafault value of 1 only returns the latest revision.
|
||||||
|
|
||||||
The value must be between 1 and 500.
|
The value must be between 1 and 500.
|
||||||
|
Note
|
||||||
|
The API sometimes returns image revisions on article pages even when this option is
|
||||||
|
set to 1. However, setting it to a higher value may reduce the number of API requests.
|
||||||
|
|
||||||
|
|
||||||
extractor.wikimedia.limit
|
extractor.wikimedia.limit
|
||||||
|
|||||||
@@ -45,16 +45,12 @@ __tests__ = (
|
|||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"#url" : "https://tl.wikipedia.org/wiki/Sitosol",
|
"#url" : "https://en.wikipedia.org/wiki/Title",
|
||||||
"#comment" : "revisions of an image in an article",
|
"#comment" : "force download revisions of images in an article",
|
||||||
"#category": ("wikimedia", "wikipedia", "article"),
|
"#category": ("wikimedia", "wikipedia", "article"),
|
||||||
"#class" : wikimedia.WikimediaArticleExtractor,
|
"#class" : wikimedia.WikimediaArticleExtractor,
|
||||||
"#options" : {"image-revisions": 10},
|
"#options" : {"image-revisions": 5},
|
||||||
"#count" : 2,
|
"#count" : "> 8",
|
||||||
"#pattern" : (
|
|
||||||
r"https://upload.wikimedia.org/wikipedia/commons/2/2e/Crowded_cytosol.png",
|
|
||||||
r"https://upload.wikimedia.org/wikipedia/commons/archive/2/2e/20080911161129%21Crowded_cytosol.png",
|
|
||||||
),
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user