This little project aims to automatically fetch crosswords from LeMonde, convert it to IPUZ format, and then saves them in an output folder
Warning
The current implementation does not work on the crosswords KOReader extension! Any help is appreciated
All the customizable settings have been moved to the top of the Python script. You just need to edit them as described
Setting name | Description | Example or default values |
---|---|---|
outputFolder |
Output folder, where all the converted crosswords will be saved | ../crosswords (you can use relative paths) |
leMondePuzzles |
Crossword IDs to fetch, convert and save. You can get them from the URL | {'subfolderName': ["crosswordID-1", "crosswordID-2"]} |
APItarget |
Advanced users only - Change the API endpoint to which the requests will be sent | https://jeux-api.lemonde.fr/graphql |
I want to fetch these crosswords (1 ; 2) and store the converted ipuz files in a subfolder called freeGrids
in my /home/user/CWoutput
folder.
Based on the URL, the crossword IDs are then free-1
and free-3
, so my final configration would be as follows:
outputFolder = '/home/user/CWoutput'
leMondePuzzles = {
"freeGrids": ['free-1', 'free-3']
}
I just wanted to have french crosswords for the crosswords KOReader plugin, but the IPUZ standard did not seem to be really democratized in this country...
This work is licensed under the GNU General Public License v3
LeMonde is a registered trademark by Société éditrice du Monde