From ea7232a5fb367aba82cc0414d7d442e18e3c5cb1 Mon Sep 17 00:00:00 2001 From: Bastien Le Querrec <blq@laquadrature.net> Date: Thu, 2 Jan 2025 15:45:34 +0100 Subject: [PATCH] =?UTF-8?q?pref29:=20ajout=20de=20la=20pr=C3=A9fecture=20d?= =?UTF-8?q?u=20Finist=C3=A8re?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 5 +++++ Attrap_pref29.py | 12 ++++++++++++ Makefile | 4 +++- README.md | 1 + cli.py | 1 + 5 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Attrap_pref29.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07815ac..759492e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -149,6 +149,11 @@ test_pref25: PREF: "pref25" extends: .default_pref +test_pref29: + variables: + PREF: "pref29" + extends: .default_pref + test_pref31: variables: PREF: "pref31" diff --git a/Attrap_pref29.py b/Attrap_pref29.py new file mode 100644 index 0000000..f9ae64a --- /dev/null +++ b/Attrap_pref29.py @@ -0,0 +1,12 @@ +from Attrap_prefdpt import Attrap_prefdpt + + +class Attrap_pref29(Attrap_prefdpt): + + # Config + hostname = 'https://www.finistere.gouv.fr' + raa_page = f'{hostname}/Publications/Recueil-des-actes-administratifs' + full_name = 'Finistère' + short_code = 'pref29' + timezone = 'Europe/Paris' + year_regex = '(?:Recueils publiés en ).*([0-9]{4})' diff --git a/Makefile b/Makefile index 68d4043..d8274e4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -make: ppparis pref01 pref2b pref03 pref04 pref05 pref06 pref09 pref10 pref13 pref25 pref31 pref33 pref34 pref35 pref38 pref39 pref42 pref44 pref49 pref50 pref59 pref62 pref63 pref64 pref65 pref66 pref69 pref73 pref75 pref80 pref81 pref83 pref87 pref91 pref92 pref93 pref94 pref976 prefidf prefpaca +make: ppparis pref01 pref2b pref03 pref04 pref05 pref06 pref09 pref10 pref13 pref25 pref29 pref31 pref33 pref34 pref35 pref38 pref39 pref42 pref44 pref49 pref50 pref59 pref62 pref63 pref64 pref65 pref66 pref69 pref73 pref75 pref80 pref81 pref83 pref87 pref91 pref92 pref93 pref94 pref976 prefidf prefpaca ppparis: bin/python3 cli.py ppparis pref01: @@ -21,6 +21,8 @@ pref13: bin/python3 cli.py pref13 pref25: bin/python3 cli.py pref25 +pref29: + bin/python3 cli.py pref29 pref31: bin/python3 cli.py pref31 pref33: diff --git a/README.md b/README.md index 2d3b6c7..6d53a7d 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,7 @@ Vous pouvez également activer le safe mode en spécifiant la variable d'environ - Préfecture de l'Aube (identifiant : `pref10`) - Préfecture des Bouches-du-Rhône (identifiant : `pref13`) - Préfecture du Doubs (identifiant : `pref25`) +- Préfecture du Finistère (identifiant : `pref29`) - Préfecture de la Haute-Garonne (identifiant : `pref31`) - Préfecture de la Gironde (identifiant : `pref33`) - Préfecture de l'Hérault (identifiant : `pref34`) diff --git a/cli.py b/cli.py index a4a9df0..4c86612 100755 --- a/cli.py +++ b/cli.py @@ -55,6 +55,7 @@ available_administrations = [ 'pref10', 'pref13', 'pref25', + 'pref29', 'pref31', 'pref33', 'pref34', -- GitLab