Source code for kingfisher_scrapy.spiders.uruguay_releases

from kingfisher_scrapy.spiders.uruguay_base import UruguayBase
from kingfisher_scrapy.util import components, handle_http_error


[docs]class UruguayReleases(UruguayBase): """ Domain Agencia Reguladora de Compras Estatales (ARCE) Spider arguments from_date Download only data from this month onward (YYYY-MM format). Defaults to '2017-11'. until_date Download only data until this month (YYYY-MM format). Defaults to the current month. API documentation https://www.gub.uy/agencia-compras-contrataciones-estado/datos-y-estadisticas/datos/open-contracting """ name = 'uruguay_releases' # SimpleSpider data_type = 'release_package' @handle_http_error def parse_list(self, response): urls = response.xpath('//item/link/text()').getall() for url in urls: yield self.build_request(url, formatter=components(-1))