Duplicates are now saved to 2 differenr files
Script to extract glosses from Moodle cloze questions.
Added argparse to run script from command line.
Usage:
Extracteur-Gloses.py [-h] filename

The script requires BeautifulSoup to parse the xml and CData sections and automatically removes span and br tags.

For each entry it checks for duplicates and saves only unique entries.
Entries having the same name but different values are distinguished by appending "#" to the entry name.

It parses "French" questions and creates 2 xml files with all possible glosses for each word (gloses_francais_unique.xml and gloses_francais_duplicates.xml).

It parses "Kalaba" questions and creates an xml file with all possible gloses for each word (gloses_kalaba_unique.xml and gloses_kalaba_duplicates.xml).

TODO: manage the remaining edge case = "questions retrouver sons des mots"
Duplicates are now saved to 2 different files.

Currently checking if duplicated words really have different answers or if the differences are just from typing differences.