Closed jpmckinney closed 3 years ago
There is also a CSV publication, but before writing a spider for the CSVs, we will wait to see if the JSON is fixed, as they are working on it.
Now the file is a JSON file, but not well transformed eg:
{"ocid":{"0":"ocds-bulbcf-10002-0219-LPU21","1":"ocds-bulbcf-10002-0220-LPU21","2":"ocds-bulbcf-10002-0726-LPU20","3":"ocds-bulbcf-10002-0746-LPU20","4":"ocds-bulbcf-101-0004-LPU11","5":"ocds-bulbcf-101-0008-LPU11","6":"ocds-bulbcf-101-0008-LPU11","7":"ocds-bulbcf-101-0013-CDI18","8":"ocds-bulbcf-101-0013-CDI18","9":"ocds-bulbcf-101-0014-CDI19","10":"ocds-bulbcf-101-0014-CDI19","11":"ocds-bulbcf-101-0016-LPU19","12":"ocds-bulbcf-101-0016-LPU19","13":"ocds-bulbcf-101-0016-LPU19","14":"ocds-bulbcf-101-0021-LPU11","15":"ocds-bulbcf-101-0021-LPU11","16":"ocds-bulbcf-101-0036-CDI18","17":"ocds-bulbcf-101-0036-CDI18","18":"ocds-bulbcf-101-0075-LPU14","19":"ocds-bulbcf-101-0076-CDI20","20":"ocds-bulbcf-101-0076-CDI20","21":"ocds-bulbcf-101-0078-LPU18","22":"ocds-bulbcf-101-0078-LPU18","23":"ocds-bulbcf-101-0078-LPU18","24":"ocds-bulbcf-101-0078-LPU18","25":"ocds-bulbcf-101-0078-LPU18","26":"ocds-bulbcf-101-0088-LPU14","27":"ocds-bulbcf-101-0093-CDI20","28":"ocds-bulbcf-101-0093-CDI20" ....
cc @cecicasco
curl 'https://data.buenosaires.gob.ar/api/3/action/package_show?id=buenos-aires-compras' | jq '.result.resources[] | select(.format == "JSON") | .url'
Returns:
https://cdn.buenosaires.gob.ar/datosabiertos/datasets/buenos-aires-compras-open-contracting/2020-8-12-bsas_release_package.zip
Which when decompressed looks like: