Source code for kingfisher_scrapy.spiders.chile_compra_api_releases

from kingfisher_scrapy.spiders.chile_compra_api_base import ChileCompraAPIBase
from kingfisher_scrapy.util import components

[docs]class ChileCompraAPIReleases(ChileCompraAPIBase): """ Domain ChileCompra Spider arguments from_date Download only data from this month onward (YYYY-MM format). Defaults to '2009-01'. until_date Download only data until this month (YYYY-MM format). Defaults to the current month. system Filter by system, if not set gets all: convenio Framework agreements only trato-directo Direct tenders only licitacion Traditional tenders Swagger API documentation """ name = 'chile_compra_api_releases' # SimpleSpider data_type = 'release_package' def handle_item(self, item): for key in item: if key.startswith('url'): yield self.build_request(item[key], formatter=components(-2))