A project to sync data from Google Sheets to a MediaWiki.
- Docker (for containerized deployment)
- Python 3.10+ (for local execution)
- Clone this repository.
- Copy
.env.exampleto.envand update with your credentials. - Update
config.yamlwith your sheet to page mappings.
- Create a project in the Google Cloud Console.
- Enable the Google Sheets API.
- Create a service account and download the JSON credentials file.
- Share your Google Sheet with the service account email (found in the JSON file).
- Update the
.envfile with the path to your credentials file.
- Update
.envwith your Google Sheets and Wiki credentials. - Define the mappings between sheets and pages in
config.yaml. Example:
sheets_to_pages:
- sheet_name: "Feuille1"
page_title: "Page1"
range: "A1\:Z1000"
- sheet_name: "Feuille2"
page_title: "Page2"
range: "A1\:Z1000"
python src/main.py