merge #8330: [wikimedia] add ability to download image revisions (#7283)

This commit is contained in:
Mike Fährmann
2025-10-03 10:20:18 +02:00
4 changed files with 55 additions and 10 deletions

View File

@@ -44,6 +44,19 @@ __tests__ = (
"width" : int,
},
{
"#url" : "https://en.wikipedia.org/wiki/Title",
"#comment" : "force download revisions of images in an article",
"#category": ("wikimedia", "wikipedia", "article"),
"#class" : wikimedia.WikimediaArticleExtractor,
"#options" : {"image-revisions": 5},
"#count" : "> 8",
"page" : "Title",
"count": {2, 5},
"num" : range(1, 5),
},
{
"#url" : "https://en.wikipedia.org/wiki/Category:Physics",
"#category": ("wikimedia", "wikipedia", "category"),