diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07815ac253360c4ee91ad586d8fe14560cfb7e5e..759492e41c693b7e19d6cd8cc2f530ef04e46f2f 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 0000000000000000000000000000000000000000..f9ae64af58847af214c5dbf2e2fcc381c67c1dd2 --- /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 68d4043a38458f05c8f0ea5a8cc38ce7129c8a1b..d8274e4700b0e61fd8a2cf8519ea907301e0b9f9 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 2d3b6c7d4b3c45c69cbea31376d9f17f50729cdc..6d53a7d6703e9ad8a3331245cd8cdfaa01d92a93 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 a4a9df03596113ece68e76b52e16131cb194379d..4c86612c378ab1db200eca0dc6aaf17e176a3d12 100755 --- a/cli.py +++ b/cli.py @@ -55,6 +55,7 @@ available_administrations = [ 'pref10', 'pref13', 'pref25', + 'pref29', 'pref31', 'pref33', 'pref34',