Access and analyze 398+ open datasets from the City of Montreal via the CKAN API. Data covers crime, transit, environment, permits, employment, and more.
Portal: https://donnees.montreal.ca
Platform: CKAN
Language: Data and metadata primarily in French
# Search for datasets
python3 scripts/montreal_data.py search "crime"
# List all datasets
python3 scripts/montreal_data.py list
# View dataset info
python3 scripts/montreal_data.py info actes-criminels
# Fetch data
python3 scripts/montreal_data.py fetch actes-criminels --limit 5
# Export as CSV
python3 scripts/montreal_data.py fetch actes-criminels --limit 100 --csv > crimes.csv
# List queryable datasets
python3 scripts/montreal_data.py searchable
| Command | Description |
|---|---|
| --------- | ------------- |
search | Search datasets by keyword (French) |
list | List all datasets |
info | Show dataset metadata and resources |
fetch | Fetch data from datastore (opts: --limit, --csv) |
searchable | List datasets with queryable resources |
Montreal publishes data primarily in French. Search queries should use French terms.
All data from donnees.montreal.ca under the Quebec Open Government Licence.
共 1 个版本