Start on monarchs
Fix Gladstone party
Update link
This script queries the WikiData knowledge graph
to find all persons that have held a certain political office, e.g. British
Prime Minister Q14211
, and generates a deck of
Anki flashcards.
See this blog post for a fuller exposition.
Requirements:
pip install sparqlwrapper genanki
Usage:
python wikidata2anki.py OFFICE_ITEM_ID
For example, to generate a deck of British Prime Ministers,
python wikidata2anki.py Q14211
with a typical result,