/crossworld

A python package for dowloading and extracting crossword from Le Monde newspaper

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Crossworld

A python package for downloading and extracting crossword from Le Monde website.

Prerequisites

Interaction with Le Monde website is done using Selenium. It's required to install Chrome and a compatible version of ChromeDriver.

Usage

First install dependencies:

poetry install

Then run the following commands:

poetry shell
python -m crossworld --output ~/Documents/Mots\ croisés

The default is to download at most 10 newspapers. It can be changed using the --max-download option.

Credentials

Access to the web site Le Monde requires using credentials; Those credentials are read from Freedesktop Secret Service API.

To store your credentials, you can use the following command:

$ secret-tool store --label='crossworld credentials' \
              uri https://secure.lemonde.fr \
              username USERNAME