This command will retrieve the last 100 datasets created with the metadata_created date from 2014-01-01 from 2014-12-15 from donnees.ville.montreal.qc.ca
http donnees.ville.montreal.qc.ca/api/3/action/package_search q=metadata_created:'[2014-01-01T00:00:00Z TO 2014-12-15T23:59:59Z]' rows=100
Then you want to save to a json the results
http donnees.ville.montreal.qc.ca/api/3/action/package_search q=metadata_created:'[2014-01-01T00:00:00Z TO 2014-12-15T23:59:59Z]' rows=2 > datasets.json
Simply run this command:
python json-to-csv-vdmdo.py datasets.json results.csv