From f1d8eaac62eace4345b51b65e029f0e04d878ef2 Mon Sep 17 00:00:00 2001 From: Bastien Le Querrec <blq@laquadrature.net> Date: Sun, 16 Mar 2025 14:58:29 +0100 Subject: [PATCH] =?UTF-8?q?pref76:=20ajout=20de=20la=20pr=C3=A9fecture=20d?= =?UTF-8?q?e=20la=20Seine-Maritime?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 5 +++++ Attrap_pref76.py | 16 ++++++++++++++++ Makefile | 4 +++- README.md | 1 + cli.py | 1 + 5 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 Attrap_pref76.py diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 55ee9d4..3989622 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -289,6 +289,11 @@ test_pref75: PREF: "pref75" extends: .default_pref +test_pref76: + variables: + PREF: "pref76" + extends: .default_pref + test_pref77: variables: PREF: "pref77" diff --git a/Attrap_pref76.py b/Attrap_pref76.py new file mode 100644 index 0000000..07a88c6 --- /dev/null +++ b/Attrap_pref76.py @@ -0,0 +1,16 @@ +from Attrap_prefdpt import Attrap_prefdpt + + +class Attrap_pref76(Attrap_prefdpt): + + # Configuration de la préfecture + hostname = 'https://www.seine-maritime.gouv.fr' + raa_page = f'{hostname}/Publications/Recueils-des-actes-administratifs-RAA' + full_name = 'Préfecture de la Seine-Maritime' + short_code = 'pref76' + timezone = 'Europe/Paris' + + # Configuration des widgets à analyser + Attrap_prefdpt.grey_card['regex']['year'] = '([0-9]{4})' + Attrap_prefdpt.grey_card['regex']['month'] = '([A-Za-zéû]* [0-9]{4})' + Attrap_prefdpt.grey_card['follow_link_on_unrecognised_date'] = False diff --git a/Makefile b/Makefile index 31a2b60..78372ed 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -make: ppparis pref01 pref02 pref03 pref04 pref05 pref06 pref09 pref10 pref11 pref13 pref2a pref2b pref25 pref29 pref30 pref31 pref33 pref34 pref35 pref38 pref39 pref42 pref44 pref49 pref50 pref52 pref54 pref55 pref59 pref61 pref62 pref63 pref64 pref65 pref66 pref69 pref73 pref75 pref77 pref80 pref81 pref83 pref87 pref91 pref92 pref93 pref94 pref976 prefbretagne prefidf prefpaca +make: ppparis pref01 pref02 pref03 pref04 pref05 pref06 pref09 pref10 pref11 pref13 pref2a pref2b pref25 pref29 pref30 pref31 pref33 pref34 pref35 pref38 pref39 pref42 pref44 pref49 pref50 pref52 pref54 pref55 pref59 pref61 pref62 pref63 pref64 pref65 pref66 pref69 pref73 pref75 pref76 pref77 pref80 pref81 pref83 pref87 pref91 pref92 pref93 pref94 pref976 prefbretagne prefidf prefpaca ppparis: bin/python3 cli.py ppparis pref01: @@ -77,6 +77,8 @@ pref73: bin/python3 cli.py pref73 pref75: bin/python3 cli.py pref75 +pref76: + bin/python3 cli.py pref76 pref77: bin/python3 cli.py pref77 pref80: diff --git a/README.md b/README.md index ca0c169..7355dcd 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,7 @@ Vous pouvez également activer le safe mode en spécifiant la variable d'environ - Préfecture du Rhône (identifiant : `pref69`) - Préfecture de la Savoie (identifiant : `pref73`) - Préfecture de Paris (identifiant : `pref75`) +- Préfecture de la Seine-Maritime (identifiant : `pref76`) - Préfecture de Seine-et-Marne (identifiant : `pref77`) - Préfecture de la Somme (identifiant : `pref80`) - Préfecture du Tarn (identifiant : `pref81`) diff --git a/cli.py b/cli.py index 6b57b3b..fa4ceff 100755 --- a/cli.py +++ b/cli.py @@ -83,6 +83,7 @@ available_administrations = [ 'pref69', 'pref73', 'pref75', + 'pref76', 'pref77', 'pref80', 'pref81', -- GitLab