From 013ef5054bfc31f7e987c27c4b32e4c008a2c080 Mon Sep 17 00:00:00 2001 From: Mateus Caetano <39102326+MatmaK@users.noreply.github.com> Date: Mon, 23 Oct 2023 16:04:50 +0000 Subject: [PATCH 1/2] Add cidades instar (Cachoeira do sul-RS, Januaria-MG, Monte Mor-SP) --- data_collection/gazette/spiders/mg/mg_januaria.py | 11 +++++++++++ .../gazette/spiders/rs/rs_cachoeira_do_sul.py | 11 +++++++++++ data_collection/gazette/spiders/sp/sp_monte_mor.py | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 data_collection/gazette/spiders/mg/mg_januaria.py create mode 100644 data_collection/gazette/spiders/rs/rs_cachoeira_do_sul.py create mode 100644 data_collection/gazette/spiders/sp/sp_monte_mor.py diff --git a/data_collection/gazette/spiders/mg/mg_januaria.py b/data_collection/gazette/spiders/mg/mg_januaria.py new file mode 100644 index 000000000..c2b421900 --- /dev/null +++ b/data_collection/gazette/spiders/mg/mg_januaria.py @@ -0,0 +1,11 @@ +from datetime import date + +from gazette.spiders.base.instar import BaseInstarSpider + + +class MgJanuariaSpider(BaseInstarSpider): + TERRITORY_ID = "3135209" + name = "mg_januaria" + allowed_domains = ["januaria.mg.gov.br"] + base_url = "https://www.januaria.mg.gov.br/portal/diario-oficial" + start_date = date(2022, 4, 29) diff --git a/data_collection/gazette/spiders/rs/rs_cachoeira_do_sul.py b/data_collection/gazette/spiders/rs/rs_cachoeira_do_sul.py new file mode 100644 index 000000000..009d5192a --- /dev/null +++ b/data_collection/gazette/spiders/rs/rs_cachoeira_do_sul.py @@ -0,0 +1,11 @@ +from datetime import date + +from gazette.spiders.base.instar import BaseInstarSpider + + +class RsCachoeiraDoSulSpider(BaseInstarSpider): + TERRITORY_ID = "4303004" + name = "rs_cachoeira_do_sul" + allowed_domains = ["cachoeiradosul.rs.gov.br"] + base_url = "https://www.cachoeiradosul.rs.gov.br/portal/diario-oficial" + start_date = date(2021, 10, 27) diff --git a/data_collection/gazette/spiders/sp/sp_monte_mor.py b/data_collection/gazette/spiders/sp/sp_monte_mor.py new file mode 100644 index 000000000..56cc506dd --- /dev/null +++ b/data_collection/gazette/spiders/sp/sp_monte_mor.py @@ -0,0 +1,11 @@ +from datetime import date + +from gazette.spiders.base.instar import BaseInstarSpider + + +class SpMonteMor(BaseInstarSpider): + TERRITORY_ID = "3531803" + name = "sp_monte_mor" + allowed_domains = ["montemor.sp.gov.br"] + base_url = "https://www.montemor.sp.gov.br/portal/diario-oficial" + start_date = date(2019, 9, 20) From ee3be6deb6ef2608762c8dbf216696a99c78552e Mon Sep 17 00:00:00 2001 From: trevineju Date: Tue, 24 Oct 2023 15:18:03 -0300 Subject: [PATCH 2/2] =?UTF-8?q?Habilita=20novas=20cidades=20em=20produ?= =?UTF-8?q?=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/enabled_spiders.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/enabled_spiders.py b/scripts/enabled_spiders.py index 5811e6e06..701170e55 100644 --- a/scripts/enabled_spiders.py +++ b/scripts/enabled_spiders.py @@ -67,6 +67,7 @@ "mg_crucilandia", "mg_itajuba", "mg_itauna", + "mg_januaria", "mg_nova_serrana", "mg_piranguinho", "mg_salinas", @@ -99,6 +100,7 @@ "rn_mossoro_2023", "rn_natal", "rr_boa_vista", + "rs_cachoeira_do_sul", "rs_caxias_do_sul", "rs_cerrito", "rs_porto_alegre", @@ -137,6 +139,7 @@ "sp_marilia", "sp_monte_alto_2017", "sp_mogi_guacu", + "sp_monte_mor", "sp_osasco", "sp_parisi", "sp_patrocinio_paulista",