Source code for kingfisher_scrapy.spiders.paraguay_dncp_records

from kingfisher_scrapy.spiders.paraguay_dncp_base import ParaguayDNCPBase

[docs] class ParaguayDNCPRecords(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_records' # BaseSpider skip_pluck = 'Already covered (see code for details)' # paraguay_dncp_releases # SimpleSpider data_type = 'record_package' def get_files_to_download(self, data): for record in data['records']: yield f"{self.url_prefix}ocds/record/{record['ocid']}"