Skip to content

Commit

Permalink
closes #1096
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Sep 6, 2024
1 parent 7d61e2e commit d2207de
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions kingfisher_scrapy/spiders/mexico_mexico_state_infoem.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import scrapy

from kingfisher_scrapy.spiders.mexico_inai_base import MexicoINAIBase


Expand All @@ -6,20 +8,13 @@ class MexicoMexicoStateINFOEM(MexicoINAIBase):
Domain
Instituto de Transparencia, Acceso a la Información Pública y Protección de Datos Personales del Estado de México
y Municipios (INFOEM)
Spider arguments
from_date
Download only data from this year onward (YYYY format).
If ``until_date`` is provided, defaults to '2021'.
until_date
Download only data until this year (YYYY format).
If ``from_date`` is provided, defaults to the current year.
API documentation
http://www.infoem.org.mx:4000/contratacionesabiertas/datosabiertos
"""
name = 'mexico_mexico_state_infoem'

# BaseSpider
default_from_date = '2021'

# MexicoINAIBase
base_url = 'http://infoem.org.mx:3000'

def start_requests(self):
yield scrapy.Request(f'{self.base_url}/edca/contractingprocess/null', meta={'file_name': 'all.json'})

0 comments on commit d2207de

Please sign in to comment.