Source code for kingfisher_scrapy.spiders.paraguay_dncp_releases

from kingfisher_scrapy.spiders.paraguay_dncp_base import ParaguayDNCPBase

[docs]class ParaguayDNCPReleases(ParaguayDNCPBase): """ Domain Dirección Nacional de Contrataciones Públicas (DNCP) Spider arguments from_date Download only data from this time onward (YYYY-MM-DDThh:mm:ss format). Defaults to '2010-01-01T00:00:00'. until_date Download only data until this time (YYYY-MM-DDThh:mm:ss format). Defaults to now. Environment variables KINGFISHER_PARAGUAY_DNCP_REQUEST_TOKEN To get an API account and request token go to Swagger API documentation """ name = 'paraguay_dncp_releases' # SimpleSpider data_type = 'release_package' def get_files_to_download(self, data): for record in data['records']: for release in record['releases']: yield release['url']