Skip to content

Commit

Permalink
Adiciona 4 novos municípios do Rio de Janeiro (#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
trevineju authored Jul 31, 2024
2 parents fe0ac0e + a7193bb commit f853250
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data_collection/gazette/spiders/base/adiarios_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@


class BaseAdiariosV2Spider(BaseGazetteSpider):
"""
This base class deals with 'Layout 2' gazette pages, usually requested
from https://{city_website}/jornal.php
"""

def start_requests(self):
start_date = self.start_date.strftime("%d/%m/%Y")
end_date = self.end_date.strftime("%d/%m/%Y")
Expand Down
11 changes: 11 additions & 0 deletions data_collection/gazette/spiders/rj/rj_armacao_dos_buzios.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from datetime import date

from gazette.spiders.base.adiarios_v2 import BaseAdiariosV2Spider


class RjArmacaoDosBuziosSpider(BaseAdiariosV2Spider):
TERRITORY_ID = "3300233"
name = "rj_armacao_dos_buzios"
allowed_domains = ["buzios.aexecutivo.com.br"]
BASE_URL = "https://buzios.aexecutivo.com.br"
start_date = date(2015, 9, 3)
11 changes: 11 additions & 0 deletions data_collection/gazette/spiders/rj/rj_iguaba_grande.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from datetime import date

from gazette.spiders.base.adiarios_v2 import BaseAdiariosV2Spider


class RjIguabaGrandeSpider(BaseAdiariosV2Spider):
TERRITORY_ID = "3301876"
name = "rj_iguaba_grande"
allowed_domains = ["iguaba.rj.gov.br"]
BASE_URL = "https://portal.iguaba.rj.gov.br"
start_date = date(2013, 1, 1)
11 changes: 11 additions & 0 deletions data_collection/gazette/spiders/rj/rj_quissama.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from datetime import date

from gazette.spiders.base.adiarios_v2 import BaseAdiariosV2Spider


class RjQuissamaSpider(BaseAdiariosV2Spider):
TERRITORY_ID = "3304151"
name = "rj_quissama"
allowed_domains = ["quissama.rj.gov.br"]
BASE_URL = "https://portal.quissama.rj.gov.br"
start_date = date(2017, 1, 31)
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from datetime import date

from gazette.spiders.base.dosp import DospGazetteSpider


class RjSaoJoseDoValeDoRioPretoSpider(DospGazetteSpider):
TERRITORY_ID = "3305158"
name = "rj_sao_jose_do_vale_do_rio_preto"
code = 3640
start_date = date(2023, 5, 24)

0 comments on commit f853250

Please sign in to comment.