How can I get the latest "flagged revision" using wiktionary/wikipedia api in python?

44 Views Asked by At

Some language versions of Wiktionary/Wikipedia include "flagged revision."

https://en.wikipedia.org/wiki/Wikipedia:Flagged_revisions/Sighted_versions

How can I create a url to get the latest "flagged revision"?

This code always returns the latest version not necessarily "flagged":

https://URL/w/api.php?action=parse&page=PAGE_NAME&prop=text

Python example implementation:

URL = "https://de.wiktionary.org/w/api.php"
soup = requests.get(URL, {'page': 'Katze', 'action': 'parse', 'format': 'json'})
0

There are 0 best solutions below