diff --git a/kingfisher_scrapy/spiders/mexico_nuevo_leon.py b/kingfisher_scrapy/spiders/mexico_nuevo_leon.py index 7022b052..cbb06950 100644 --- a/kingfisher_scrapy/spiders/mexico_nuevo_leon.py +++ b/kingfisher_scrapy/spiders/mexico_nuevo_leon.py @@ -29,6 +29,6 @@ def start_requests(self): @handle_http_error def parse_list(self, response): for resource in response.json()['result']['resources']: - if resource['format'].upper() == 'JSON': - # Presently, only one URL matches. + # Some files don't include an extension file, so we need to check the file name instead. + if resource['name'].upper().startswith('JSON-OCDS'): yield self.build_request(resource['url'], formatter=components(-1))